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. Invalid geometry

Invalid geometry

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.0k Views
  • 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.
  • G Offline
    G Offline
    GrahamLa
    wrote on last edited by
    #1

    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?

    ODБOïO 1 Reply Last reply
    0
    • G GrahamLa

      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?

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @GrahamLa Hi,
      try

      visibility: Window.FullScreen
      //flags: Qt.FramelessWindowHint  // and this  if need frameless window
      
      G 1 Reply Last reply
      0
      • ODБOïO ODБOï

        @GrahamLa Hi,
        try

        visibility: Window.FullScreen
        //flags: Qt.FramelessWindowHint  // and this  if need frameless window
        
        G Offline
        G Offline
        GrahamLa
        wrote on last edited by
        #3

        @LeLev
        I still get the same problem

        ODБOïO 1 Reply Last reply
        0
        • G GrahamLa

          @LeLev
          I still get the same problem

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by
          #4

          @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
          }
          
          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