Invalid geometry



  • Hi
    I have a very simple qml application that I want to run in full screen

    import QtQuick 2.9
    import QtQuick.Window 2.2
    
    Window {
        visible: true
    
        title: qsTr("Hello World")
    
        visibility: "FullScreen"
    }
    

    It does run in full screen but I get this error

    QML debugging is enabled. Only use this in a safe environment.
    QSGThreadedRenderLoop: expose event received for window QQuickWindowQmlImpl(0x2a5b5ae0 active exposed, visibility=QWindow::FullScreen, flags=QFlags<Qt::WindowType>(Window), title=Hello World, geometry=0,0 1920x1080) with invalid geometry: QRect(0,0 1920x1080) on QScreen(0x2a562b90, name=\\.\DISPLAY4)
    

    Why do I get this error?



  • @GrahamLa Hi,
    try

    visibility: Window.FullScreen
    //flags: Qt.FramelessWindowHint  // and this  if need frameless window
    


  • @LeLev
    I still get the same problem



  • @GrahamLa
    can you try with ApplicationWindow and also set height and width to the window ?

    import QtQuick 2.10
    import QtQuick.Window 2.10
    
    ApplicationWindow {
        id: window
        visible: true
        width: 720
        height: 430
    
        flags: Qt.FramelessWindowHint
      //  visibility: Window.FullScreen
    }
    

Log in to reply
 

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