pythonqt

Find item in QApplication by only the objectname

浪尽此生 提交于 2019-11-30 00:33:33
问题 i want to find any object by a objectname string name inside of the QApplication Something like QApplication.instance().findByClassName("codeEditor") which should return a list of widgets with this classname that i can iterate over if there is more then one [QPushButton (QPushButton at: 0x0000008EA3B3DD80), QWidget (QWidget at: 0x0000008EA3F33F40)] I have read this but it requires a object and i want something like * This is something i came up with for testing: def findWidget(name): name =