to get the QLineEdit text and save in val which defined like QString *val;
to get the QLineEdit text and save in val which defined like QString *val;
Does this even compile?
Anyway, QLineEdit doesn't have any toPlainText() function since it can only contain plain text.
Why don't you simply do something like this?
Qt Code:
void MyClass::mySlot() { emit mySignal(myLineEdit->text()); }To copy to clipboard, switch view to plain text mode
Can it send the text that I just had enterd? I try it at once.Thanks for you help!My English is not good,so much time can't make others known my mind!![]()
I try it . It didn't work. Because I can't find the text() in myLineEdit.
myLineEdit->text() the text() is invalid.
Bookmarks