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. Best Practice Advice: Enumerate all windows in the desktop(s)
Forum Updated to NodeBB v4.3 + New Features

Best Practice Advice: Enumerate all windows in the desktop(s)

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 3.9k 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.
  • R Offline
    R Offline
    ronM71
    wrote on last edited by
    #1

    My Qt application (that will run on Windows, OS X and Ubuntu) has a need to:

    1. List all windows
    2. Obtain their caption text (if any)
    3. Obtain an Icon of the application, if any, as QIcon or QPixmap (e.g. App Icon)

    I know how to do this for Windows using Win32. I can research Mac and Ubuntu separately, but I was wondering if there's an abstracted Qt approach to assist me?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      I don't think so.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        definitely no way with default Qt. IIRC there were already questions like this on devnet and the result was always: Absolutely OS dependent, use the OS API.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ronM71
          wrote on last edited by
          #4

          Got you. I'll created an abstracted QT class to represent the information I need with platform specific "plug-ins" to feed this information in. Each platform will build with its own plug-in.

          It might be a nice idea to add this to Qt once I'm done with all 3 platforms, so that it's available for other Qt users out-of-the-box in future versions. What's the policy of contributing it to Qt?

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgeyer
            wrote on last edited by
            #5

            http://developer.qt.nokia.com/wiki/Qt_Contribution_Guidelines

            1 Reply Last reply
            0
            • AlicemirrorA Offline
              AlicemirrorA Offline
              Alicemirror
              wrote on last edited by
              #6

              Agree: put this good idea in a wiki page and notify to us. Remember to add the tags to simplify search finding.

              Enrico Miglino (aka Alicemirror)
              Balearic Dynamics
              Islas Baleares, Ibiza (Spain)
              www.balearicdynamics.com

              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