Hi,
I would like to retrieve the list of widgets in the application so I used the following code in python. Unfortunately, the call to allWidgets actually returns a list of empty string: [,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]. The QApplication.instance() also returns an empty value.
def get_main_window(self):
widgets = QtGui.QApplication.instance().allWidgets()
print widgets
for wid in widgets:
if not isinstance(wid, QtGui.QMainWindow):
continue
return wid