I am trying to call a message box from a multi threaded loop. My loop is running in a function (ReadThread) that called from the QtConcurrent::run. In that function the application is continue sly reading a hardware device. I want to pop up a message box based on the hardware response.
How I can call a message box from ReadThread() function?
Qt Code:
m_Future->waitForFinished(); *m_Future = QtConcurrent::run(this, &MainWindow::ReadThread);To copy to clipboard, switch view to plain text mode
Bookmarks