Share data between dialogs
-
Hi,
I have two dialogs with one lineEdit in each, and I wanna pass the text of the one lineEdit to the other lineEdit, but I don't know how. Any idea??
thanks.
-
Save the value of the first lineedit as a member variable. When you create or use the second dialog, pass it in.
-
Sorry but I don't understand your reply. I'm a beginner and I don't know how to do it. Could you write an example code or any tutorial?
Thanks. -
Hi. You can use "signal and slots":http://qt-project.org/doc/qt-5.0/qtcore/signalsandslots.html for that.