Feature #1832
closedWLineEdit with PlaceHolderText
0%
Description
It would be very useful (e.g. to save a lot of precious space) to have a feature similar to Qt QLineEdit:
[[[http://qt-project.org/doc/qt-4.8/qlineedit.html#placeholderText-prop]]]
With the same behavior (gray, so the user sees that it isn't real text), vanishing if the user has focus to this field.
Updated by Wim Dumon over 11 years ago
- Status changed from New to Resolved
I think we call it setEmptyText(), as demonstrated in the second line edit here: http://www.webtoolkit.eu/widgets/forms/line_text-editor
Updated by Stefan Ruppert over 11 years ago
Hi,
today I searched also for exact this feature and I think you should change or at least add a setPlaceholder() method! And it seems that I'm not the only one having problems to find the setEmptyText() method!
In HTML5 its called placeholder so why should introduce a new not so intuitive method name setEmptyText()?
Regards,
Stefan
Updated by Koen Deforche over 11 years ago
- Assignee set to Koen Deforche
- Target version set to 3.3.1
Hey Stefan,
setPlaceholderText is indeed a better name, consider it done.
koen
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed