I put my lengthy process in a thread and now the refreshing works but the widget from which the thread was started should be disabled during the execution of the thread. With refreshing I only mean the visual aspect, ie the widget shows all its colors and buttons. It may not seem as if it crashed.
How can I do this? Can I disable the widget and if so: how do I check whether the thread has finished. I tryed putting a loop after starting the thread that does nothing and only exits when finished() is true, but that didn't work:
Qt Code:
while (!myThread.finished()) { }To copy to clipboard, switch view to plain text mode
How can I let my main program wait for the thread to finish whithout loosing the refreshing of the main window?




Reply With Quote
Bookmarks