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. How to put different widgets on different (real) screens?

How to put different widgets on different (real) screens?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 688 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    marius63
    wrote on last edited by
    #1

    I need to put different widgets on different (real) screens.
    Qt reports the correct number of screens, but also reports virtual desktop mode, so I cannot reference each real screen can I?
    How does one undo virtual desktop mode?
    And how does one put a certain widget on a certain (real) screen?
    I am using http://qt-project.org/doc/qt-4.8/qdesktopwidget.html
    Does Qt 5 improve this?
    Thanks a lot.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can use the availableGeometry(int screen) method to get the rectangle for the given screen and use that to place you widgets.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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