我用一个已有类去继承QThread. 可是总是出错.问题主要发生在singal和slot的connect部分.我就不知道问题在哪里.哪位帮我看看.
src/ViewerImgWindow.cpp:906: error: reference to 'connect' is ambiguous
/usr/local/Trolltech/Qt-4.1.3/lib/QtCore.framework/Headers/qobject.h:276: error: candidates are: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
/usr/local/Trolltech/Qt-4.1.3/lib/QtCore.framework/Headers/qobject.h:176: error: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
/usr/local/Trolltech/Qt-4.1.3/lib/QtCore.framework/Headers/qobject.h:276: error: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
/usr/local/Trolltech/Qt-4.1.3/lib/QtCore.framework/Headers/qobject.h:176: error: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
另一个问题就是QTimer类.这个类提供的是多线程还是串行化.因为如果机器CPU不止一个的话应该是多线程好一些.
[ 此贴被XChinux在2006-10-09 13:13重新编辑 ]