Bug #3641
openReal text treated as placeholder text in WFormWidget when text is modified programatically.
0%
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
Updated by Koen Deforche almost 10 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
- Target version changed from 3.3.0 to 3.3.4
Updated by Koen Deforche almost 10 years ago
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