Originally Posted by karlkar Another way is by giving the Thread class pointer to the widget with ui for example during construction: Qt Code: Switch view Thread::Thread(QObject *parent, QWidget *window): QThread(parent), pointerToWindowWithUi(window){} Thread::Thread(QObject *parent, QWidget *window) : QThread(parent), pointerToWindowWithUi(window) { } To copy to clipboard, switch view to plain text mode where pointerToWindowWithUi (xD) is thread class member. That breaks the principle that every UI object should remain in one thread only.
Thread::Thread(QObject *parent, QWidget *window): QThread(parent), pointerToWindowWithUi(window){}
Thread::Thread(QObject *parent, QWidget *window) : QThread(parent), pointerToWindowWithUi(window) { }
View Tag Cloud
Forum Rules
Bookmarks