[Qt-interest] the method "indexOfMethod" always return "-1",why?
Yao Huiji
spideryao at gmail.com
Sun Aug 16 17:10:53 CEST 2009
Hi,
sorry for my newbie question. when I call "indexOfMethod" ,the return value
always is "-1",I don't konw why,can you help me?
#include <QtCore/QCoreApplication>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QString
str(QString("%1").arg(a.metaObject()->indexOfMethod("aboutToQuit")));
printf(str.toStdString().c_str());
return a.exec();
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090816/4e3501a9/attachment.html
More information about the Qt-interest-old
mailing list