[Feelings & Sharing] 很想问一下不用qt怎么获取窗口属性
Tofloor
poster avatar
云中鹤
deepin
2021-07-01 08:53
Author

想获取其他窗口ID,修改属性。比如位置或者宽度。

Reply Favorite View the author
All Replies
Rubbish
deepin
2021-07-01 09:18
#1

应该可以用kwin script,*,如果deepin没改掉kwin的这些接口。

更底层就是用X11,这个不了解

Reply View the author
depend
deepin
2021-07-01 18:24
#2

楼上的是一种方法,https://blog.csdn.net/qq_43081702/article/details/115678100  ,这还有一种,通过窗口名称找到wid的

Reply View the author
depend
deepin
2021-07-01 18:26
#3

搞错了,你说的是完全不用qt的话,其实省去qprocess,使用x11的接口可以,不过很复杂,我也不太懂

Reply View the author
云中鹤
deepin
2021-07-02 07:14
#4
Rubbish

应该可以用kwin script,*,如果deepin没改掉kwin的这些接口。

更底层就是用X11,这个不了解

qt直接用formwinid获取窗口后似乎只对dock有效。怎么对其他的就没效果。没有做其他事

Reply View the author
Comments
zhongyic
2021-07-03 19:04
错楼了,,,