Thursday, May 17, 2012

In Wt, how can I get a tooltip working for the whole text in a WCheckBox?

Create a WContainerWidget wrapper around the WCheckBox, and then assign the tooltip to that WContainerWidget wrapper.  For some reason, if you assign the tooltip directly to the WCheckBox, only hovering the mouse over the square box will trigger the popup tooltip.  Assigning the tooltip to the WContainerWidget wrapper will add a tooltip over the WCheckBox text.