Real text treated as placeholder text in WFormWidget when text is modified programatically.
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.
Updated by Koen Deforche almost 8 years ago
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.