magnuslu
02-07-2010, 07:28 AM
Hi,
I have a Qt app which runs fine on Windows. It stores Chinese characters in a SQLITE database and I perfectly able to read and write them. Now I am porting this application to Maemo 5. I have set up my development environment with Scratchbox and Xephyr. In my application I read from the database first to a QString variable that populates a QTextEdit widget. In the ui file I used font family 'MS Song', 'Times New Roman' (which worked on Windows) and none. The characters are always displayed as a rectangle in my app. I don't have a N900 to test it on, so I don't know if it is only an emulator (Xephyr) issue (that I want to solve anyway) or if it will be there also on the device. Is it a matter of installing fonts to Xephyr? How do I do that?
Please note that I have qDebug statements in my code and the characters appear correctly in my Scratchbox terminal window.
I've posted this on qtforum.org as well with no replies so far...
Regards,
Magnus
I have a Qt app which runs fine on Windows. It stores Chinese characters in a SQLITE database and I perfectly able to read and write them. Now I am porting this application to Maemo 5. I have set up my development environment with Scratchbox and Xephyr. In my application I read from the database first to a QString variable that populates a QTextEdit widget. In the ui file I used font family 'MS Song', 'Times New Roman' (which worked on Windows) and none. The characters are always displayed as a rectangle in my app. I don't have a N900 to test it on, so I don't know if it is only an emulator (Xephyr) issue (that I want to solve anyway) or if it will be there also on the device. Is it a matter of installing fonts to Xephyr? How do I do that?
Please note that I have qDebug statements in my code and the characters appear correctly in my Scratchbox terminal window.
I've posted this on qtforum.org as well with no replies so far...
Regards,
Magnus