Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtQuick.Window 2.0 does not support fullscreen
Qt 6.11 is out! See what's new in the release blog

QtQuick.Window 2.0 does not support fullscreen

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FreeRollen
    wrote on last edited by
    #1

    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();
    }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      It should be:

      visibility: Window.FullScreen
      

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved