Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Editing qlabel text after show dialog
bagipro last edited by
I have a code
@void Eng::show(int type,Words* w)
But it doesn't work, but if i write
@@void Eng::show(int type,Words* w)
All edits correctly, but i need to edit text after showing.
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.