QtQuick.Window 2.0 does not support fullscreen



  • I have a raspberry 3 with the 7" raspberry pi screen.

    I developed a simple qml application that i want to run in fullscreen application but apparently QtQuick.Window 2.0 does not support visibility: "FullScreen"

    How do i get my application to be fullscreen application?

    import QtQuick 2.5
    import QtQuick.Window 2.0
    
    Window {
        objectName: "mainWindow"
        visible: true
        width: 800
        height: 480
        color:"black"
        visibility: "FullScreen"
    
        //flags: Qt.WindowFullScreen
        flags: Qt.SplashScreen
        //y: Screen.desktopAvailableHeight - height
    
        Rectangle {
            anchors.top : parent.top
            color:"grey"
            width: Screen.width
            height: 35
        }
    }
    
    int main(int argc, char *argv[])
    {
    
        QGuiApplication app(argc, argv);
    
        QQmlApplicationEngine engine;
    
        engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
    
        return app.exec();
    }
    

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    It should be:

    visibility: Window.FullScreen
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.