Exec show hide problem i have
-
Hi there, i have three dialogs named dialog 1 dialog 2 dialog 3 dialog 1 is executed by main.cpp as a pointer and di1.exec(); di2 is executed by di1 as a pointer and di2.exec(); and di3 ..... . in constructurs of di2 and di3 ,previous dialogs are set to hide mode . and in close_Btn_clicked the previous dialog is shown by parentwidget().show(); . i have error that when i clicked on closebtn in dialog 3 the di1.exec in main.cpp is done and the line after that contaains a qDebug shows a message in terminal and when i close di2, di1 is freezed and the program crashes. i mean why is this marvel happened? and how to fix it >? what is the behavior of QT for show hide and exec()? if you have taught about that to share my problem with chatGPT , im not sure if your answer satisfies me!!! Thank yall.