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
Forum Updated to NodeBB v4.3 + New Features

Show QWidget on the Active Window

Scheduled Pinned Locked Moved Solved Qt for Python
7 Posts 2 Posters 537 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.
  • H Offline
    H Offline
    HariHaran
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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
          0
          • SGaistS SGaist

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

            H Offline
            H Offline
            HariHaran
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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
              0
              • SGaistS SGaist

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

                H Offline
                H Offline
                HariHaran
                wrote on last edited by
                #7

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

                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