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

QGuiApplication height of the window title bar



  • Hi

    I have s QGuiApplication. If it is shown Windowed, I need to know the height of the window title bar.
    I found it for a QApplication

    QApplication::style()->pixelMetric(QStyle::PM_TitleBarHeight);
    

    but need it for a QGuiApplication with QML Content.

    I need to know this, because if i switch my application from fullscreen to windowed the window is to high (about the height of the window titlebar)

    Thanks in advance, greets solarisx


Log in to reply