when instantiating a QComboBox, with the QT5 compatibility layer enabled, we’re actually instantiating this class:
aqt.qt.qt5_compat._instrument_type.<locals>.QtClassProxy
then later when doing
widget.findChildren(aqt.qt.QComboBox)
, the widget can’t be found. This code in AwesomeTTS worked with 2.1.49 and works with DISABLE_QT5_COMPAT=1. I just can’t figure out how to make it work with the QT5 compatibility layer enabled (and i’m guessing early versions of 2.1.50 will have it enabled).
I see two potential approaches but i’m stuck on both of these:
Can I instantiate a true, unaltered PyQt6.QtWidgets.QComboBox
which is not wrapped by QtClassProxy ? If so, how ?
Or alternatively, what kind of type can I pass to widget.findChildren
so that it locates the QComboBox wrapped in the QtClassProxy ?