Important: Please read the Qt Code of Conduct -

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

  • 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: and it seems like it could be helpful.
    This one too:

    Any help would be greatly appreciated.

Log in to reply