hello all
i've made a dialog, wich holds some qlabels and a porgress bar. When the user presses the ok button, the progress bar starts, the buttons get disabled and when the progress is finished the dialog is hidden.
When the dialog reopens, it must be cleared... meaning, active buttons, progress bar back to value of 0. This clearing is done right begore the dialog is re-shown.
The problem is, tha although the code is like this...
Qt Code:
m_probar->setValue(0); m_importButton->setEnabled(true); m_cancelButton->setEnabled(true); exec();To copy to clipboard, switch view to plain text mode
i see the opossite behavior. I see a rapid change on dialog graphics, just wheni re-open it. This means that the dialog is shown before the values are set.
Any advice?
thanks in advance
Bookmarks