Hi everyone,
How do i get the text from a QPlainTextEdit? the text property is not returning anyhthing! Please help!
Regards,
Naveesh
Doolhur
Hi everyone,
How do i get the text from a QPlainTextEdit? the text property is not returning anyhthing! Please help!
Regards,
Naveesh
Doolhur
Use QPlainText::toPlainText()
http://doc.trolltech.com/4.6/qplaint...plainText-prop
Hello Sir,
Thank you but it is still nor woking.I have used this: .
Please help me.Code:QString msg=ui.txtMsg.toPlainText();
Thanks a lot,
Naveesh
Did you develop the UI screen using Designer under Carbide or Creator? Does that statement even compile correctly?
Normally it would be
QString msg=ui.txtMsg ->toPlainText();
for a UI developed under Carbide Designer.