Hi,

Quote Originally Posted by anda_skoa View Post
Since you have fixed sequence of functions, dervice from QThread and implement that sequence in its run() method.
Ok so you mean to do :
Qt Code:
  1. class MainWindow : public QMainWindow, QThread
  2. {
  3. Q_OBJECT
  4. ...
  5. }
To copy to clipboard, switch view to plain text mode 

Then it says In member function 'virtual const QMetaObject* MainWindow::metaObject() const':/home/sg/Docs/.../moc_mainwindow.cpp:62: error: 'QObject' is an ambiguous base of 'MainWindow'

You could also create a second, non-UI program and start that from the UI program using QProcess.
Ok here I'm completly lost ^^'' can you explain that better please?

Thanks,