This article introduces how to use Qt do a simple document editor, the experiment process mainly involves the Qt window design, the menu bar (including the right-click menu), toolbar, status bar, common operations such as text file. Resources for an example on the website: http://www.yafeilinux.com/
Do the experiment under ubuntu originally, but began to build a menu bar and so on, with their "is Chinese, Chinese is not displayed. After running on the Internet for 2 days, all sorts of means are tried, what encoding, what practical QTextCodec this class are tried, no success. Very uncomfortable, temporarily let's turn to under Windows. Under ubuntu is simply designed the program interface, and then get the code to Windows, open the main. After pp file directly in the main, could not have been found in the CPP decode ". The main CPP "with" the System "- encoding this error message, found in the source file can't type in Chinese (such as notes of the time want to use Chinese comments). But in the same engineering other CPP file you can type in Chinese. Watch the CPP file under other encoding System too. Misunderstandings, and coding problem!!