摘要: 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 阅读全文
posted @ 2017-08-28 10:49 Dolviet 阅读(159) 评论(0) 推荐(0) 编辑
摘要: In my codes, I use a flag changed to mark whether the document has been modified: MainWindow::MainWindow(QWidget *parent) { changed = false; …… In fac 阅读全文
posted @ 2017-08-27 18:46 Dolviet 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 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 th 阅读全文
posted @ 2017-08-27 18:22 Dolviet 阅读(110) 评论(0) 推荐(0) 编辑
摘要: In this example program, we can see scraps like this: MainWindow::MainWindow() { textEdit = new QPlainTextEdit; setCentralWidget(textEdit); createActi 阅读全文
posted @ 2017-08-27 18:22 Dolviet 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Qt provides lots of examples, with which we can learn Qt quickly.So, Let's start form the first example: Notepad Application 阅读全文
posted @ 2017-08-27 18:21 Dolviet 阅读(124) 评论(0) 推荐(0) 编辑