PDA

View Full Version : Html tags in QComboBox items



ROCKSTAR
24th January 2014, 09:59
Is it possible to use html tags in combobox items? Actually i dont understand why it doesn't display tagged text properly when the type of input argument is QString.


QStringList itemsList=(QStringList()<<"<b>time</b>"<<"M"<<"H"<<"P1"<<"T1"<<"N1OTN"<<"N2OTN"<<"GT"<<"РУД"<<"R"<<"DKY");
comboBox.addItems(itemsList);

so there is <b>time</b> instead of time