Hello,
I'm begining witt Qt. I have MainWindow and Dialog.
Dialog have a two QLineEdits lineEditLogin and lineEditPassword. How I will get data from this QLineEdits into MainWindow and display on Label in MainWindow?
Thank's you
Hello,
I'm begining witt Qt. I have MainWindow and Dialog.
Dialog have a two QLineEdits lineEditLogin and lineEditPassword. How I will get data from this QLineEdits into MainWindow and display on Label in MainWindow?
Thank's you
Qt Code:
QString text; text=lineEdit1->text(); label->setText(text);To copy to clipboard, switch view to plain text mode
add two method to your dialog like these
Qt Code:To copy to clipboard, switch view to plain text mode
Last edited by spirit; 11th March 2009 at 17:42.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks