xdotool cannot find Qt application window, where wmctrl can Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of xdotool cannot find Qt application window, where wmctrl can without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I want to detect a Qt5 QWidgets application from its
window title using xdotool to test the GUI under GNU/Windows with the latest Xubuntu LTS distro.

When I create any minimal Qt application, with wmctrl -l I can detect it,
with xdotool it cannot be found, as shown here:

enter image description here

(note that searching for Enter s also fails)

Does anybody have a good experience with using xdotool on Qt QWidget applications,
without using tricks like grepping through the wmctrl scripts?

AFAIKS, I am not the only
one that has problems with this combination.

Answer

Sadly, I do not know which update caused this, but one day after the question, suddenly everything works as expected:

Solved

xdotool can detect Qt windows with spaces in its name as expected.

We are here to answer your question about xdotool cannot find Qt application window, where wmctrl can - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji