Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    What is the use of the Qt::Desktop window flag?

    General and Desktop
    2
    2
    2137
    Loading More Posts
    • 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.
    • J
      jesuisbenjamin last edited by

      The "documentation":http://doc.qt.nokia.com/stable/qt.html shows:
      Qt::Desktop 0x00000010 | Window Indicates that this widget is the desktop. This is the type for QDesktopWidget.

      Other flags in the same series tell the WM what type of window it is dealing with: does this flag turn the window into the desktop? (That sounds not really probable). What else would you use this flag for then?

      1 Reply Last reply Reply Quote 0
      • L
        lgeyer last edited by

        There is a special widget called "QDesktopWidget":http://doc.qt.nokia.com/latest/qdesktopwidget.html, which allows for accessing screen information on multi-head systems. You cannot use it directly and you will have to use QApplication::desktop() to retrieve it.

        The Qt::Desktop flag is (at least as far as I know) used internally only to distinguish the QDesktopWidget from other widgets and is not passed to any window manager.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post