[Qt-interest] Slots in threads ?

Patric userqt at gmail.com
Thu Aug 27 18:48:10 CEST 2009


Hello, 
I have a little gui program with one worker thread. I want to stop and start the thread from the gui. So I put some slots inside the thread. But now I'm getting some errors on compilation : 


mainwindow.cpp: In constructor `MainWindow::MainWindow(QWidget*)':
mainwindow.cpp:35: error: no matching function for call to `MainWindow::connect(Board*&, const char*, Engine*, const char*)'

c:/Qt/2009.03/qt/include/QtCore/../../src/corelib/kernel/qobject.h:202: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)

c:/Qt/2009.03/qt/include/QtCore/../../src/corelib/kernel/qobject.h:308: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const



Am I allowed to put slots in threads ? 

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090827/c8364346/attachment.html 


More information about the Qt-interest-old mailing list