Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

Getting QQuickView in a static way [solved]



  • Hi all,
    is there a way to get the current QQuickView or QWindow in a static way. For widgets there was the QApplication::activeWindow() but I can't find anything similar for my QML app. I need the QWindow for
    accessing the QWindow in:
    QGuiApplication::platformNativeInterface()->nativeResourceForWindow("uiview", QWindow )
    Any hints?
    best,
    patrik


Log in to reply