开发者

weird focus problem in pyqt

开发者 https://www.devze.com 2023-03-23 23:45 出处:网络
I have a gui built using QT and Python using pyqt. I use several widgets linked to methods using the usual signal and slots mechanism. For some widgets like certain push buttons or radio buttons (not

I have a gui built using QT and Python using pyqt. I use several widgets linked to methods using the usual signal and slots mechanism. For some widgets like certain push buttons or radio buttons (not all of them ..) after I press the button once and everything works as expected, I cannot focus those buttons anymore. When I move the mouse over and try a click a different control is focused instead and receives the click event. I do not under开发者_高级运维stand what could cause such behavior.


The problem is caused by the Ubuntu 11.04 Unity Desktop, it does not reproduce on the classic Gnome Desktop.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号