Forums

OverviewV-Play 2 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 V-Play 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
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support