rianquinn
5th February 2006, 19:32
In Qt 3, you can query for all of the obejcts in the qApp. This is really helpful for finding pointers to QObjects in plugins.
How do you do this in Qt4. Whenever I run the function findChild, or any of the different versions of it the compiler says that this function doesn't exist in the QObject or qApp.
I guess my question would be, How can I get a QObject pointer to any QObject in the qApp via a QString
Example: If I have a plugin loaded with the name plugin_menu, I would like to be able from any function, and any plugin to be able to get a pointer to the QObject * via a string "plugin_menu"
How do you do this in Qt4. Whenever I run the function findChild, or any of the different versions of it the compiler says that this function doesn't exist in the QObject or qApp.
I guess my question would be, How can I get a QObject pointer to any QObject in the qApp via a QString
Example: If I have a plugin loaded with the name plugin_menu, I would like to be able from any function, and any plugin to be able to get a pointer to the QObject * via a string "plugin_menu"