Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What is the use of the Qt::Desktop window flag?

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.3k 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.
  • J Offline
    J Offline
    jesuisbenjamin
    wrote on last edited by
    #1

    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
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      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
      0

      • Login

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