PDA

View Full Version : Block the plainTextEdit



NewLegend
16th September 2010, 12:23
Hi
How do I make the plainTextEdit is Blocked?
Is there a way to make it read-only
After viewing the results.

^NyAw^
16th September 2010, 12:26
Hi,

Have you readed the documentation of the class? There is exactly a method that is called "setReadOnly".

NewLegend
16th September 2010, 12:32
Hi,

Have you readed the documentation of the class? There is exactly a method that is called "setReadOnly".
Thank you

ui->plainTextEdit->setReadOnly(TRUE);

NewLegend
16th September 2010, 12:43
Is there a way to make a warning message when you click Button.

NewLegend
16th September 2010, 14:13
No answers

^NyAw^
16th September 2010, 14:55
Hi,

Take a look at QMessageBox

Lykurg
16th September 2010, 14:56
What button? QMessageBox::warning().