Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › GlobalKeyForwarder causes Q_ASSERT on key press

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7607

    Andreas

    The bug was introduced with the 2.0.1 release and is quite simple to reproduce. Create a new project with the Empty Felgo 2 Project template. Compile, run, press any key, look at the pretty assert window.

     

    The GlobalKeyForwarder is reseting the QEvent accepted flag from true (set by Qt) to false.

    Qt 5.3.0 source from the online installer.

    qtdeclarative\src\quick\items\qquickwindow.cpp:2358

    e->accept();

    QCoreApplication::sendEvent(item, e);

    the event is forwarded to a QQuickItem.

     

    qtdeclarative\src\quick\items\qquickitem.cpp:4486

    void QQuickItemPrivate::deliverKeyEvent(QKeyEvent *e)
    {
    Q_Q(QQuickItem);

    Q_ASSERT(e->isAccepted()); // <– assert because isAccepted is no longer true.

     

    #7608

    Christian
    Felgo Team

    Hi,

    you are right, thanks for reporting! We fixed this bug right away and will make it available with the next update, ETA early next week.

    If you need custom key presses urgently for your project, just send us an email with details which compiler you are using and we’ll send you the fixed library.

    Cheers, Chris

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded