SebastianBecker
9th September 2009, 19:25
Hello.
I am using a main thread (GUI Thread) and multiple other threads for communication. The communication threads emit signals to the main thread. In the slots for those signals I open message boxes by using QDialog::exec(). Everything works alright if there is no open message. But if there is already an open message in the main GUI thread which has also been opened by using QDialog::exec() I get a Qt warning telling me that I am having a recursive call. But this is exactly what I want to do. Is there any other way than exec() to block the main thread in order to force my users to answer a certain dialog message?
Kind regards,
Sebastian
I am using a main thread (GUI Thread) and multiple other threads for communication. The communication threads emit signals to the main thread. In the slots for those signals I open message boxes by using QDialog::exec(). Everything works alright if there is no open message. But if there is already an open message in the main GUI thread which has also been opened by using QDialog::exec() I get a Qt warning telling me that I am having a recursive call. But this is exactly what I want to do. Is there any other way than exec() to block the main thread in order to force my users to answer a certain dialog message?
Kind regards,
Sebastian