have been very envious of others can develop text editor, later learned QT, see the example inside, their own transformation, unexpectedly also can get a out, although said is not very strong, right when is one of their own learning results. Okay, I'll just cut the crap and go straight to the chase. This text editor mainly implements the following functions:
(1) text editing (including Undo, Redo, save, open file, export to PDF, Save as, etc.).
(2) tab-style document.
(3) The line number is displayed.
(4) The edits are converted to uppercase or lowercase.
(5) Font change.
(6) Editor settings.
(7) Go to the specified line.
Here are the following:
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/75/A4/wKioL1ZACZ-jUOLpAASMlHKRhBM242.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiol1zacz-juolpaasmlhkrhbm242.jpg "/>
650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M02/75/A4/wKioL1ZACaHS5snlAAOxbzA_NFc693.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiol1zacahs5snlaaoxbza_nfc693.jpg "/>
Source code:http://down.51cto.com/data/2116197. Honestly, it didn't take long to do this, because Qt is really handy, and many APIs can be found in documents, and there are plenty of examples available. A good research, you can take care of it. MFC is far away, with QT,MFC is bullshit, for the original to give up MFC feel fortunate.
This article from "Body is a bodhi, heart like Mirror" blog, please be sure to keep this source http://1691647.blog.51cto.com/1681647/1710939
Using the QT Development Text editor (a): Introduction to Functions