QT Change Dialog Cancel Button Not Selected

I have an application that uses 20 different classes. Program execution begins in the main window. I am starting a progress dialogue. I will use different classes for different purposes. After each function call, the execution of which goes to a specific class, and does this, and returns to the mainwindow class, I update the execution dialog. Now the problem is that the progress dialog hangs when execution leaves the mainwindow class. The cancel button is not available, and therefore, execution cannot be stopped at the required time.

MainClass :: MainClass () {

ProgressDialog-> Exec ();

x->add();

updateProgressDialog();

y->do();

updateProgressDialog();

zz->bring();

updateProgressDialog();

}

// x, y, z are three different classes.

. , . . . , , . , proggress.

, , . , .

+3
2

, , . , :

: (: Witold Wysota)
( ) . , , - , , , , , .

+1

, , Qt. , exec(). , Qt , .

, , , .

Qt: QProgressDialog

0

Source: https://habr.com/ru/post/1759903/


All Articles