class MyClass : public Class1
{
Q_OBJECT
protected:
MyThread *mThread;
public:
~MyClass();
//expose QThread API
void start() {
mThread->start();
}
..
you can add other
QThread methods and
slots here
}
class MyClass : public Class1
{
Q_OBJECT
protected:
MyThread *mThread;
public:
MyClass(QObject* = NULL);
~MyClass();
//expose QThread API
void start() {
mThread->start();
}
.. you can add other QThread methods and slots here
}
To copy to clipboard, switch view to plain text mode
Here MyThread is a QThread subclass.
Bookmarks