Re: QLineEdit default text
You will need to subclas QLIneEdit.
On focusIn and focusOut events you will have set / clear the gray text.
And I guess making text gray is not that difficult :rolleyes:
Re: QLineEdit default text
OK, I just wondered if there was something quicker
Re: QLineEdit default text
I think either you can use event filters: Events and Event Filters
Re: QLineEdit default text
You can check on qt.gitorious.com the sources and find how Trolls did it in Qt 4.7's QLineEdit :]
Re: QLineEdit default text
how did you solve your problem? I meet this too.