Pardon my ignorance if I've missed something blindingly obvious, but, I recently upgraded my project form 3.3.3 to 3.3.4, and all the text for all of my checkboxes has vanished.
The boxes themselves still exist, but there is not html being generated for the text.
Any pointers on how to solve this...?
Thanks in advance..
Updated by Koen Deforche about 7 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
Perhaps it's because you use the constructor without text and then set a text later with setText()? This no longer works, but this is in fact in line with the documentation:
/*! \brief Creates a checkbox without label.
- A checkbox created by this constructor will not contain a placeholder
- for a label, and therefore it is not possible to assign a label to it
- later through setText().
WCheckBox(WContainerWidget *parent = 0);
You thus need to pass at least an empty text in the constructor if you want to show a label inside.