You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would return True, but now returns False because the class for menus added using addMenu is the native QMenu class whereas QtPy now exposes a wrapped class. Fixing this might be a matter of overriding addMenu?
The text was updated successfully, but these errors were encountered:
This issue hit us by surprise as well and broke our application in a very interesting way. Maybe the implications were not apparent at the time, but at least in hindsight, introducing these wrapper classes seems to break fundamental Qt functionality (eg. Qbject.findChild() et. al) and should have been handled like a major change.
The change in question seems to have been introduced with #461
Would be great to get some guidance on how to deal with the situation. Will this change be rolled back or is there advice on how to make findChild() work again?
Hi @astrofrog thanks for the report! I think as @axel-kah mentions we could revert adding those wrappers (I though they were necessary but after some checks seems like that is not the case). Working on it over #507 ! If you have further thoughs about this let me know!
Prior to QtPy 2.4.2, the following:
would return
True
, but now returnsFalse
because the class for menus added usingaddMenu
is the native QMenu class whereas QtPy now exposes a wrapped class. Fixing this might be a matter of overridingaddMenu
?The text was updated successfully, but these errors were encountered: