1

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.

4

1 回答 1

0

可悲的是,我不知道是哪个更新导致了这个问题,但在问题发生后的一天,突然一切都按预期工作:

解决了

xdotool可以按预期检测名称中带有空格的 Qt 窗口。

于 2016-05-08T07:20:54.920 回答