Project

General

Profile

Actions

Bug #3641

open

Real text treated as placeholder text in WFormWidget when text is modified programatically.

Added by Jesse Pepper over 9 years ago. Updated about 9 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
Start date:
10/29/2014
Due date:
% Done:

0%

Estimated time:

Description

If the text in a WTextArea or other WFormWidget is set programatically with the setText() method, and placeholder text has previously been set with the setEmptyText or setPlaceholderText() method, then the new real text is treated as placeholder text. For example, it uses the placeholder formatting, and when the widget gets the focus, it becomes blank. I have tested this only in 3.3.0-rc3 but have looked at the latest version of the relevant code in git and no change seems to have been made to remedy this behaviour.


Files

hello.C (3.1 KB) hello.C Koen Deforche, 02/16/2015 05:47 PM
Actions #1

Updated by Koen Deforche about 9 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version changed from 3.3.0 to 3.3.4
Actions #2

Updated by Koen Deforche about 9 years ago

  • File hello.C hello.C added
  • Status changed from InProgress to Feedback

Hey,

I can't reproduce this. See the attached modified hello world example: if you click 'Greet me', it will use setText() to on the line edit. But after that the initial placeholder text is still used as placeholder.

Koen

Actions

Also available in: Atom PDF