Quote Originally Posted by karlkar View Post
Another way is by giving the Thread class pointer to the widget with ui for example during construction:

Qt Code:
  1. Thread::Thread(QObject *parent, QWidget *window)
  2. : QThread(parent),
  3. pointerToWindowWithUi(window)
  4. {
  5. }
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.