Hi, I am writing a qt application and i want to display chinese as the caption of a dialog. I have no idea about how to realize it. Any help is appreciate.
Hello,
On Tue, Oct 08, 2013 at 04:53:04PM +0800, yuqing wang wrote:
I am writing a qt application and i want to display chinese as the caption of a dialog.
I did not try it on Genode, but the attached source code should work on Qt4 and Qt5. It may be, that we are missing, for example, font support. So, please give it a try and report the result.
Please note, the QString::fromUtf8() is an essential part of the solution, otherwise, it will _not_ work.
Regards
Sorry, I forgot to mention the following very helpful link on the topic
https://qt-project.org/doc/qt-5.1/qtdoc/internationalization.html
Regards
Hi, I tried the code you gave me,the chinese can not be displayed.Instead ,it shows some blank boxes. The result is attached.
Regards
2013/10/8 Christian Helmuth <christian.helmuth@...1...>
Hello,
On Tue, Oct 08, 2013 at 04:53:04PM +0800, yuqing wang wrote:
I am writing a qt application and i want to display chinese as the
caption
of a dialog.
I did not try it on Genode, but the attached source code should work on Qt4 and Qt5. It may be, that we are missing, for example, font support. So, please give it a try and report the result.
Please note, the QString::fromUtf8() is an essential part of the solution, otherwise, it will _not_ work.
Regards
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clk... _______________________________________________ Genode-main mailing list Genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Hello,
On Wed, Oct 09, 2013 at 03:39:06PM +0800, yuqing wang wrote:
I tried the code you gave me,the chinese can not be displayed.Instead ,it shows some blank boxes. The result is attached.
I opened a new issue on Github
https://github.com/genodelabs/genode/issues/907
Please add any useful additional information about your issue there (e.g., Qt version used).
Regards
Hi I get the useful information given by Christian Prochaska on Github. I change the font file ,it solves this issue. Thank you very much.
Regards
2013/10/9 Christian Helmuth <christian.helmuth@...1...>
Hello,
On Wed, Oct 09, 2013 at 03:39:06PM +0800, yuqing wang wrote:
I tried the code you gave me,the chinese can not be displayed.Instead ,it shows some blank boxes. The result is attached.
I opened a new issue on Github
https://github.com/genodelabs/genode/issues/907
Please add any useful additional information about your issue there (e.g., Qt version used).
Regards
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clk... _______________________________________________ Genode-main mailing list Genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main