Qt my handy Notepad

Source: Internet
Author: User

Learning qt time is not very long, but there is a period of time, has been the spirit of learning is to learn the "do not own things" principle, continue to complement themselves, and constantly improve. Today will be done before the Notepad, as a proof of their own learning results, but also a growth bar, by the way can also give me the same as the original, beginner Qt's compatriots a little reference example.

I was very lazy, no sub-modules, basically in a. cpp file is done, this is not good, so that the code looks particularly bloated, readability check. The basic interface:

Start interface:


Enter a text and set the font, size, and color

Export to PDF file

Some settings for the status bar that show custom information:


A few other basic interfaces:

When you exit to determine whether the document has been modified, if modified, the prompt box prompts whether to save:

The above are some simple and basic operation, at the time of learning, almost what will not go to learn what, look at the corresponding API, do not understand the time on Baidu, will those function memory translation, no way, English ability or further improve.

The following is the engineering structure of Notepad

The shortcomings also hope that we all learn together. Need reference can leave the mailbox, I send you ...


Qt my handy Notepad

Related Article

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.