Skip to content

Commit cb83f9f

Browse files
authored
Add magicgui.* objectName to qt widgets (#134)
1 parent d042c13 commit cb83f9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

magicgui/backends/_qtpy/widgets.py

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class QBaseWidget(_protocols.WidgetProtocol):
2828

2929
def __init__(self, qwidg: QtW.QWidget):
3030
self._qwidget = qwidg()
31+
self._qwidget.setObjectName(f"magicgui.{qwidg.__name__}")
3132
self._event_filter = EventFilter()
3233
self._qwidget.installEventFilter(self._event_filter)
3334

0 commit comments

Comments
 (0)