Try to do this in your main loop:
#include <QTextCodec>
int main(int argc, char *argv[])
{
Agenda w;
w.show();
return a.exec();
}
#include <QTextCodec>
int main(int argc, char *argv[])
{
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QApplication a(argc, argv);
Agenda w;
w.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
I did it for some especial spanish characters and it work out, maybe in your case the locale to use is not UTF-8, so you should try with another locale, but I think that it could be the solution, so you try and let us know if it work.
Bookmarks