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 can I use QX11Info to make a custom dock bar. (like KDE)
Qt 6.11 is out! See what's new in the release blog

How can I use QX11Info to make a custom dock bar. (like KDE)

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.6k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello,
    I am programming on RHEL 6, using C++ and QT. I have created a custom dock bar with my own start button on the left and a clock on the right. My dock bar is created with a QWidget control.

    So I have the basic application running. What I need to do now is figure out how to identify which applications are open so I can put some icons in the dock bar. And identify which one is active so I can make it's icon a "focus' icon. I also may need to know when an app is minimized.

    Can someone please tell me a simple way of doing this? It seems to me that I should be able to get that info when my dock bar launches from the QX11Info class. Then I think I should be able to set up some type of event listener to capture "focus" events from the windows.

    I am looking at this: http://john.nachtimwald.com/2009/11/01/x11-intercept-window-close-event/ and it seems like it could be helpful.
    This one too: http://qt-project.org/forums/viewthread/8610

    Any help would be greatly appreciated.

    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