Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QQuickWidget not active before being clicked once



  • I have a QQuickWidget is shown inside a QWidget.
    I met a problem when tried to add that QQuickWidget to other layout (to display it in full screen mode).
    The problem is my first click on that QQuickWidget after switch display mode doesn't work properly.

    The similar error was reported at https://forum.qt.io/topic/46259/qquickview-not-active-before-being-clicked-once

    I tried some ways to active it like send a QMouseEvent use QCoreApplication::sendEvent(),
    or forceActiveFocus(), update()... but they didn't work.

    Could you give me some suggestions?
    Regards
    Kelvin.


Log in to reply