Qt 6.11 is out! See what's new in the release
blog
Editing qlabel text after show dialog
General and Desktop
3
Posts
3
Posters
1.1k
Views
1
Watching
-
-
Hi,
exec will "block" until you close the dialog.
So what would you like to achieve ?
-
exec() is a blocking call that waits for your dialog to close. So a call to setText after that does have an effect, it's just that the dialog is no longer visible.
To edit the label you need to do it while the exec is still executing, either in any events of your dialog or via a signal/slot connection triggered by some action.