Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Umlauts in QString..

$
0
0
Hello, I’ve recently started making a GUI to my program with Qt. I like it so far, but I have one major problem. From the start up, I’ve had a translator file, which basicly holds a bunch of QString variables with the text I want. The main reason for this is to “easily” translate my program to English or other languages if needed. Text is Finnish at this point. For example, my header file: extern QString TEXT_UI_TITLE_ERROR_GENERAL_ERROR; extern QString TEXT_TITLE_TASKS_MAIN; source file: QString TEXT_UI_TITLE_ERROR_GENERAL_ERROR = “Virhe”; QString TEXT_TITLE_TASKS_MAIN = “ – Tehtävät”; The problem is, I cannot get the umlauts to work (ä, ö..) at all. I’ve tried TEXT_TITLE_TASKS_MAIN.toLatin(), but that doesn’t work. Is there any way to get this right? I’ve tried to Google and search all over, but no solution, driving me nuts. When I started I though “That can’t be a big deal” and now that I’ve tried to resolve it it actually might not be that easy :P

Viewing all articles
Browse latest Browse all 18427

Trending Articles