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. How can I check window mode
Forum Updated to NodeBB v4.3 + New Features

How can I check window mode

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qml
5 Posts 2 Posters 544 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.
  • A Offline
    A Offline
    Alrott SlimRG
    wrote on last edited by
    #1

    How can I check if qml main window is in Fullscreen mode in qml?

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      if ( windowID.visibility === QWindow::FullScreen )

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alrott SlimRG
        wrote on last edited by
        #3

        In qml it doesn't work:
        Example:

        height: (mainWindow.visibility === QWindow::FullScreen) ? parent.height : mainTitle.titleHeight * 1.5
        
        1 Reply Last reply
        0
        • JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #4

          you can print out the value of mainWindow.visibility with console.log() to check.
          sorry it is
          visibility: Window.FullScreen
          in my code. I forgot it.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Alrott SlimRG
            wrote on last edited by
            #5

            @JoeCFD said in How can I check window mode:

            Window.FullScreen

            Thanks!
            This works fine)

            height: (mainWindow.visibility === Window.FullScreen) ? parent.height : mainTitle.titleHeight * 1.5
            
            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