Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Show QWidget on the Active Window
QtWS25 Last Chance

Show QWidget on the Active Window

Scheduled Pinned Locked Moved Solved Qt for Python
7 Posts 2 Posters 527 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.
  • H Offline
    H Offline
    HariHaran
    wrote on 24 Dec 2021, 11:30 last edited by
    #1

    Hi team,

    I want to show the QWidget on the active screen (or) window. It can be an external screen(Monitor) or it can be an another screen like Desktop 2 in Mission control Mac OS.

    Any hints ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Dec 2021, 20:30 last edited by
      #2

      Hi and welcome to devnet,

      Are you thinking of something like QGuiApplication::primaryScreen ?

      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
      • H Offline
        H Offline
        HariHaran
        wrote on 27 Dec 2021, 05:44 last edited by HariHaran
        #3

        Screenshot 2021-12-27 at 11.08.33 AM.png

        I want to show in this active desktop or to show in all the desktops. I have attached an image from mission control in mac os.

        QtGuiApplication.primaryScreen() doesn't work as expected.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 27 Dec 2021, 19:56 last edited by
          #4

          So you want to do in your application what macOS provides as desktop environment feature ?

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

          H 1 Reply Last reply 29 Dec 2021, 05:28
          0
          • S SGaist
            27 Dec 2021, 19:56

            So you want to do in your application what macOS provides as desktop environment feature ?

            H Offline
            H Offline
            HariHaran
            wrote on 29 Dec 2021, 05:28 last edited by
            #5

            @SGaist Yes . Actually the same feature is available in windows too.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 29 Dec 2021, 20:17 last edited by
              #6

              That's the thing: it's a desktop environment feature not an application feature.

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

              H 1 Reply Last reply 30 Dec 2021, 05:52
              0
              • S SGaist
                29 Dec 2021, 20:17

                That's the thing: it's a desktop environment feature not an application feature.

                H Offline
                H Offline
                HariHaran
                wrote on 30 Dec 2021, 05:52 last edited by
                #7

                @SGaist Ok then, thanks for the confirmation. :-)

                1 Reply Last reply
                0

                1/7

                24 Dec 2021, 11:30

                • Login

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