简介: Qt SQL 是 Qt 的重要模块之一,为了方便,Qt 对 SQL 进行了一系列的封装,并将 SQL API 分为如下三层: (1)驱动层 (2)SQL API 层 (3)用户接口层 目录: 一、使用前提 二、数据库类 三、连接到数据库 · SQL 数据库驱动 四、执行 SQL 语句 · Q Read More
posted @ 2016-06-10 23:26
findumars
Views(538)
Comments(0)
Diggs(0)
案例一:QMessageBox msgBox;msgBox.setText("The document has been modified.");msgBox.setInformativeText("Do you want to save your changes?");msgBox.setStan Read More
posted @ 2016-06-10 23:25
findumars
Views(2164)
Comments(0)
Diggs(0)
Qt Creator error: LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 治标又治本的解决方法: 找到在 { C:\Windows\Microsoft.NET\Framework\v4.0.30319 } 和 { C:\Program Files (x86)\Microso Read More
posted @ 2016-06-10 23:24
findumars
Views(606)
Comments(0)
Diggs(0)
学习Qt有一点时间了,但之前都是在debug版本下进行编译运行,偶然切换到release版本下,却出现了如下错误: 错误提示: This application failed to start because it could not find or load the Qt platform plu Read More
posted @ 2016-06-10 23:23
findumars
Views(3987)
Comments(0)
Diggs(0)
Qt 编译的时候默认会使用影子构建,这时在工作路径下会生成一个目录:xxx-build-desktop-xxx. 如果编译通过,在该目录下会生成一个可执行文件,双击之,但不能运行,提示是缺少某个动态库文件。 这时有两个解决方法: 其一,拷贝该动态库文件到该目录下; 其二,设置环境变量。 { 如果是M Read More
posted @ 2016-06-10 23:22
findumars
Views(1622)
Comments(0)
Diggs(0)