qobject_cast<RosterOptionsWidget *> (w)->getOptions(&options);
原来的这个代码,在4.2.2下面运行的蛮好,可是用4.4.3来编译的时候却提示了下面的错误,怎么回事啊,是linq-4.1.7的代码
e:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qwidget.h: In member function `void QWidget::qt_check_for_QOBJECT_macro(const T&) const [with T = RosterOptionsWi
dget]':
e:/Qt/4.4.3/include/QtCore/../../src/corelib/kernel/qobject.h:436: instantiated from `T qobject_cast(QObject*) [with T = RosterOptionsWidget*]'rosterplugin.cpp:925: instantiated from here
e:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qwidget.h:138: error: void value not ignored as it ought to be