PDA

View Full Version : Problem with QTabWidget::setTabText(...) function



zgulser
25th April 2013, 10:47
Hi,

The following line does not change the style of the tab string(just some part of the string);


_ui.tabWidgetLeftBottom->setTabText(1, getTabHistoryString() + "<span style=\"color:#B0171F; font-size:9px \">" + p_string_to_append +"</span>" );

Any ideas?

ChrisW67
26th April 2013, 00:51
The following line does not change the style of the tab string(just some part of the string);
Why would expect any different; you've only tried to apply a style to part of the string?