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