Project

General

Profile

Actions

Feature #1832

closed

WLineEdit with PlaceHolderText

Added by Anonymous almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/11/2013
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

Updated by Wim Dumon almost 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

Actions #2

Updated by Stefan Ruppert almost 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

Actions #3

Updated by Koen Deforche almost 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

Actions #4

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF