html symbols in tr("") sometimes not correct displayed, QGroupBox, QRadiobutton
I would like to display some greek symbols (e.g. for alpha α) as html-Code for example in the heading of a QGroupBox.
Well, so far here it works:
QLabel *label = new QLabel(tr("<i>α</i>:")); formLayout->addRow(tr("<i>τ</i>"), lineEdit);
and here it does not work:
QGroupBox *groupBox = new QGroupBox(tr("α")); radio = new QRadioButton(tr("<i>α</i>"));
Has it to do, that it works for:
- Qlabel and
and not for
- QGroupBox and
Or is another class needed for QGroupBox and QRadiobutton?
Has anyone experiences with this problem?
Please let me know! Thanks!
Not all classes support html, QLabel and QLineEdit are two special cases.
For QRadioButton, you can associate it with a QLabel using e.g a QHorizontalLayout.
Hope it helps