[Qt-jambi-interest] Cant find qFindChild method
Eskil Abrahamsen Blomfeldt
eblomfel at trolltech.com
Wed Feb 25 13:58:45 CET 2009
Brian Rep wrote:
> Bull all this examples are coded in C, not that the problem is the C
> part, but instead , Eclipse reports that the method is not found.
>
> The code is simply:
> QWidget window = QUiLoader.load(file);
> ui_outputWidget = (QLabel)qFindChild(window, "outputWidget");
>
> So, any one knows where can I find qFindChild?
>
You can use the findChild() method in QObject.
http://doc.trolltech.com/qtjambi-4.5.0-preview/html/com/trolltech/qt/core/QObject.html#findChild(java.lang.Class,
java.lang.String)
The qFindChild() function in C++ is only used to work around the fact
that the MSVC6 compiler does not support template functions inside classes.
-- Eskil
More information about the Qt-jambi-interest
mailing list