Wanderson-Magalhaes / Simple_PySide_Base

MIT License
752 stars 183 forks source link

Buttons don't click until menu bar is open in PySide2 #8

Closed Josh596 closed 3 years ago

Josh596 commented 4 years ago

I love your work. It's a very unique design

Wanderson-Magalhaes commented 4 years ago

Here mouse clicks work correctly on all buttons, are you creating your menus as in the example below?

add-MENUS

Josh596 commented 4 years ago

Try it with Pyside2, the menu bar had to be max length before the button click showed any effect. It worked perfectly on PyQt5

Josh596 commented 4 years ago

Thank you for your work

Jaccxc commented 3 years ago

I got the same problem here. The clickable area of the button is somehow reduced because of the button style sheet(padding and border). The bar must be extended to click the button. How do I solve this?

圖片 圖片

Wanderson-Magalhaes commented 3 years ago

Guys, I found the problem and it is caused by the latest version of PySide2 (5.15.1), in version "5.14.2" it works perfectly. I will see as soon as possible why I am causing this problem. Try to install version 5.14.2 and you will see that it is working correctly on it.

Wanderson-Magalhaes commented 3 years ago

@Jaccxc and @Josh596 It seems to be a Bug from PySide2 version 5.15.0 and 5.15.1 and also from PyQt5. Use version "5.14.2.2" for this project (pip install pyside2 == 5.14.2.2) Note: https://wiki.qt.io/Qt_for_Python_Development_Notes In October they will release version 6 of Qt, we will wait for them to solve these problems or bring some solution for the same. Another project with de same problem: https://github.com/napari/napari/issues/1312

Josh596 commented 3 years ago

Thank you so much, It works in PySide2 version 5.14.2.2(Just as you said)