Thanks for your suggestions. Lykurg, I used your suggestion and I finally found a solution!
I had to use button->setText(QString::fromUtf8("String here"));
and where there were special characters (like à ) I had to replace them with utf8 special from (e.g. é is written \u00e9)
There are several webpages where you can find these tables that specify the special characters for every special character.
So the action from this
ui->nextButton->setText(tr("Déplacer à l'image &suivante"));
ui->nextButton->setText(tr("Déplacer à l'image &suivante"));
To copy to clipboard, switch view to plain text mode
should be done
ui
->nextButton
->setText
(QString::fromUtf8("D\u00e9placer \u00e0 l'image &suivante"));
ui->nextButton->setText(QString::fromUtf8("D\u00e9placer \u00e0 l'image &suivante"));
To copy to clipboard, switch view to plain text mode
Bookmarks