ROCKSTAR
24th January 2014, 08: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
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