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 open 2 different window at same time on 2 different monitor?
Forum Updated to NodeBB v4.3 + New Features

How to open 2 different window at same time on 2 different monitor?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 492 Views 2 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by Qt embedded developer
    #1

    I have to do poc for opening 2 different window on 2 different monitor from one cpu. How to do this?

    I actually don't know

    Is it possible to open it at same time? If yes how?

    Aim is that one window will show live graph if sensor connected and if not then just show graph without data on first monitor.

    And at same time in second monitor second window will allow to select sensor and it also allow to reduce noise in sensor.

    So at combined purpose is to check the sensor noise while connect in original product.

    How to do it? How qt can help with one exe application
    To serve this purpose on 2 separate monitor at same time when start the qt application?

    How I can set that window size such that it directly fit into full screen?

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by mrdebug
      #2

      Just using a qdialog and the object QApplication::screens() to know how much screens are available, which resolutions they have etc.
      The monitor are related at the same machine and same user or two different machines?

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

      Q 1 Reply Last reply
      0
      • mrdebugM mrdebug

        Just using a qdialog and the object QApplication::screens() to know how much screens are available, which resolutions they have etc.
        The monitor are related at the same machine and same user or two different machines?

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by
        #3

        @mrdebug same machine same user

        M 1 Reply Last reply
        0
        • Q Qt embedded developer

          @mrdebug same machine same user

          M Offline
          M Offline
          mpergand
          wrote on last edited by mpergand
          #4

          @Qt-embedded-developer said in How to open 2 different window at same time on 2 different monitor?:

          same machine same user

          Use the following code to list your screens and move your windows accordingly.

          QList<QScreen *> screens=QGuiApplication::screens();
          for(auto screen : screens)
          	{
          	qDebug()<< screen->name()<<screen->availableGeometry();
          	}
          
          Q 1 Reply Last reply
          1
          • M mpergand

            @Qt-embedded-developer said in How to open 2 different window at same time on 2 different monitor?:

            same machine same user

            Use the following code to list your screens and move your windows accordingly.

            QList<QScreen *> screens=QGuiApplication::screens();
            for(auto screen : screens)
            	{
            	qDebug()<< screen->name()<<screen->availableGeometry();
            	}
            
            Q Offline
            Q Offline
            Qt embedded developer
            wrote on last edited by
            #5

            @mpergand will this code open first window in first monitor and second window on second monitor?

            M 1 Reply Last reply
            0
            • Q Qt embedded developer

              @mpergand will this code open first window in first monitor and second window on second monitor?

              M Offline
              M Offline
              mpergand
              wrote on last edited by mpergand
              #6

              @Qt-embedded-developer said in How to open 2 different window at same time on 2 different monitor?:

              will this code open first window in first monitor and second window on second monitor?

              That open nothing, that's your job :)

              Post here the print of my code above.

              1 Reply Last reply
              2

              • Login

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