-
-
Notifications
You must be signed in to change notification settings - Fork 158
Closed
Description
Prior to QtPy 2.4.2, the following:
from qtpy.QtWidgets import QApplication, QMenu
app = QApplication([])
menu = QMenu()
menu.addMenu('test')
submenu = menu.children()[1]
print(isinstance(submenu, QMenu))
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
?