- 博客(5)
- 收藏
- 关注
转载 Diaries of Learning Qt (1.4) QTextEdit & QPlainTextEdit
In the example the main area is the QPlainTextEdit widget, where users can deal with the text. In a notepad, all we need is just some basic operations on text like copy, cut and paste. QPlainTex...
2017-08-28 10:49:00 93
转载 Diaries of Learning Qt (1.3) The maybeSave() Function
In my codes, I use a flag changed to mark whether the document has been modified: MainWindow::MainWindow(QWidget *parent) { changed = false; …… In fact, Qt provides a special method o...
2017-08-27 18:46:00 112
转载 Diaries of Learning Qt (1.1) Capture the Close Event
We want to ask the user whether he'd like to save the change when he tries to close the window, so we need to capture the close event.In fact, when the user clickes the X button on the title ...
2017-08-27 18:22:00 75
转载 Diaries of Learning Qt (1.2) Modularity
In this example program, we can see scraps like this: MainWindow::MainWindow() { textEdit = new QPlainTextEdit; setCentralWidget(textEdit); createActions(); crea...
2017-08-27 18:22:00 83
转载 Diaries of Learning Qt (1.0) Start from Notepad Application
Qt provides lots of examples, with which we can learn Qt quickly.So, Let's start form the first example: Notepad Application 转载于:https://www.cnblogs.com/Dolviet/p/7441063.html
2017-08-27 18:21:00 70
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人