Hello!

First i have to admit that I'm a complete beginner to QT. I'm writing many small apps to learn QT by doing; that's working very nice, if I don't know something I'm looking in the documentation. For the most problems, this works and has much more effect to me than stupidly read the documentation from the top to the end. But now I'm facing a problem with QLineEdit and I don't have the slightest idea how to solve it. I've already searched in the docu but I didn't find anything really usefull. So heres the problem:

I have a QLineEdit field, in which the user should be able to enter his or her name. The field should be empty after starting the program. But because i don't want to label the field, i would like to insert a light-grey text which says "Enter your name here, please." into the field. The text should disappear just after the user entered anything. That means if the User enters the first letter of his or her name, the letter he/she tiped should be in the field instead of the grey text. If the filed is empty (the user deletes every character), the grey text should appear again.

I've already asked in the freenode #qt channel and a member told me to subclass the lineEdit-field. And that's the problem: I don't really know what is meant with subclass. It would be very nice if someone could send me a link where i can read about subclassing; I know what a class is and how to use them.

Thanks in advance!!!
Jonathan