How to set a value from current widget to lineEdit on dialog?
Hi,
I have QWidget and QDialog.
The QWidget has a button and label.
I want when i click the button to open the dialog and inside to be written the value from the QWidget's label.
I have tried to make it with emmiting signal, but when i open the dialog the signal is already emitted.
Re: How to set a value from current widget to lineEdit on dialog?
Re: How to set a value from current widget to lineEdit on dialog?
Add a QString parameter to the dialog constructor, or code a member function that set the text and call that function before you show (or exec) the dialog.
Re: How to set a value from current widget to lineEdit on dialog?