0

I have this command to set label for all headers of a table:

ui.mytable->setHorizontalHeaderLabels(QStringList() << tr("VERTRAG") << tr("DATUM/UHRZEIT") << tr("PRÜFER"));

But this Ü does not appear. I tried to use

ui.mytable->setHorizontalHeaderLabels(QStringList() << tr("VERTRAG") << tr("DATUM/UHRZEIT") << tr("PRÜFER").replace(QString::fromLatin1("Ü"), "&Uuml;"));

and

ui.mytable->setHorizontalHeaderLabels(QStringList() << tr("VERTRAG") << tr("DATUM/UHRZEIT") << tr("PRÜFER").replace(QString::fromUtf8("Ü"), "&Uuml;"));

but it does not work also. How can I solve this?

enter image description here

gnase
  • 580
  • 2
  • 10
  • 25

1 Answers1

1

ok, thank you guys. I have a simple answer. It works with me.

ui.mytable->setHorizontalHeaderLabels(QStringList() << tr("VERTRAG") << tr("DATUM/UHRZEIT") << QLatin1String("PRÜFER"));

gnase
  • 580
  • 2
  • 10
  • 25