Important: Please read the 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

    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?

Log in to reply