Using the QT Development Text editor (a): Introduction to Functions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.