06 2017 档案
摘要:1. C++ GUI Qt4编程第三章,增加工具栏、状态栏和快捷键。 2. mainwindow.h 3. mainwindow.cpp 5. main.cpp和spreadsheet.qrc不变。
阅读全文
摘要:1. C++ GUI Qt4编程第三章,图片使用资源机制法。 2. 步骤: 2-1. 在resource文件夹下,新建images文件,存放图片。 2-2. 新建spreadsheet.qrc文件,并在.pro文件中添加代码: RESOURCES = spreadsheet.qrc 2-3. 打开.
阅读全文
摘要:1. C++ GUI Qt4编程第三章,添加menu菜单。 2. mainwindow.h 3. mainwindow.cpp 4. main.cpp
阅读全文
摘要:1. 使用Qt设计师创建Sort对话框。 2. sortdialog.cpp 3. sortdialog.h 4. main.cpp
阅读全文
摘要:1. 下载SourceCodePro字体,后缀应为.ttf。 2. 将字体文件复制到fonts(/usr/share/fonts)文件夹下: [root@centos fonts]# mv /home/seif/Downloads/SourceCodePro . 3. 修改字体文件的权限,使root
阅读全文
摘要:1. 使用Qt设计师创建GoToCell对话框。 2. gotocelldialog.cpp 3. gotocelldialog.h 4. main.cpp
阅读全文
摘要:finddialog.h finddialog.cpp main.cpp
阅读全文
摘要:1. 根据C++ GUI Qt4编程(第二版)整理2. 系统:centos7; Qt版本:5.5.13. 程序:layout.cpp 4. 生成与平台无关的项目文件:$ qmake -project5. 生成与平台相关的makefile文件:$ qmake 1.3.pro 6. 构建该程序,生成可执
阅读全文
摘要:1. 根据C++ GUI Qt4编程(第二版)整理2. 系统:centos7; Qt版本:5.5.13. 程序:quit.cpp 4. 别名关机一次就无法使用,还是得修改环境变量: a 打开bashrc文件:$ sudo vim .bashrc b 添加下面一句:export PATH=$PATH:
阅读全文
摘要:1. 根据C++ GUI Qt4编程(第二版)整理2. 系统:centos7; Qt版本:5.5.13. 程序:hello.cpp 4. qmake使用别名:$ alias qmake="/opt/Qt/Qt5.5.1/5.5/gcc_64/bin/qmake"5. 生成与平台无关的项目文件:$ q
阅读全文

浙公网安备 33010602011771号