I believe I figured out what I needed to do.
I made a new class, and just added a parameter to my connections which takes the ui object created in main.cpp
Without going too much into it, here is a snippet from my worker class source
void example
::THREAD_example(QThread &cThread, MainWindow
&w
) {
connect(&cThread,SIGNAL(started()),&w,SLOT(METHOD_example()));
}
void example::THREAD_example(QThread &cThread, MainWindow &w)
{
connect(&cThread,SIGNAL(started()),&w,SLOT(METHOD_example()));
}
To copy to clipboard, switch view to plain text mode
METHOD_example() is a public slot in the main thread, which takes signals from my worker class, blah blah blah
anyways, thanks :P
Bookmarks