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. Sample code demonstrating multi monitor support in Qt
Qt 6.11 is out! See what's new in the release blog

Sample code demonstrating multi monitor support in Qt

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

    Hi All,

    I need a sample code which demonstrates an application using multi monitor support on desktop.

    Basically the application's main window should run on primary screen and its child widgets on other secondary screens.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      See "QDesktopWidget":http://qt-project.org/doc/qt-5/qdesktopwidget.html and "QScreen":http://qt-project.org/doc/qt-5/qscreen.html.

      (Z(:^

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

        QScreen and friends will not really help you here since they represent displays that are connected. AFAIK there is nothing that could tell you the potential maximum number of screens.

        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