This looks reasonable.
You can do the connect in main()
Qt Code:
To copy to clipboard, switch view to plain text mode
Cheers,
_
This looks reasonable.
You can do the connect in main()
Qt Code:
To copy to clipboard, switch view to plain text mode
Cheers,
_
And the last parameter is not needed because its default value is Qt::AutoConnection which means that for objects from different threads it is Qt::QueuedConnection.
True, however in this case both objects belong to the same thread. It will still work with auto connection because another check is which thread is executing the emit and that is a different thread then the owner of the reciever object.
Doesn't hurt to explicitly specify Qt::QueuedConnection though.
Cheers,
_
GUI objects in threads aside, the original error message:
is caused by:QMessageBox::critical' : none of the 4 overloads could convert all the argument
because the first argument, this, is not a pointer to a QWidget and cannot be converted to one.Qt Code:
QMessageBox::critical(this,tr("ERROR"),tr("Large change in illumination.\nPlease re-capture reference image.\n"));To copy to clipboard, switch view to plain text mode
Bookmarks