[SOLVED] How to clear a lineEdit when it is clicked?
-
Hello, i don't see any signal for a lineedit to be activated when you click at the lineedit.
What i want to do, is to create a lineedit, that from default it has a text like "Put text here", and when you click at the lineedit this text clears and let's you type whatever you want.. With this i clear the text
@ ui->lineEdit->setText("");
@but i don't know when to call it.. Thanks
-
Hello,
I think "placeholderText":http://doc.qt.nokia.com/latest/qlineedit.html#placeholderText-prop is what you're looking for.
-
[quote author="task_struct" date="1322424422"]Hello,
I think "placeholderText":http://doc.qt.nokia.com/latest/qlineedit.html#placeholderText-prop is what you're looking for.[/quote]
That's exactly what i want.
Thank you a lot! :)