- 博客(77)
- 资源 (6)
- 收藏
- 关注
原创 7、Qt延时的使用
Qt延时;QThread::sleep();QThread::msleep();QThread::usleep();QTimer::singleShot()与QEventLoop()
2023-11-30 17:42:59
7221
原创 5、Qt:项目中包含多个子项目(.pro)/子模块(.pri)
Qt:项目中包含多个子项目(.pro)/子模块(.pri);TEMPLATE = subdirs
2023-11-26 11:22:28
5781
5
原创 Win10安装SQLite Expert Pers Setup64
在win10系统下安装SQLite Expert Pers Setup64
2023-06-27 21:48:18
2072
1
原创 Qt:Could not find qmake spec ‘default’.Error while parsing file xxx.pro. Giving up
Qt:Could not find qmake spec ‘default’.Error while parsing file xxx.pro. Giving up
2022-07-16 10:20:06
3244
2
原创 git clone:fatal: unable to access ‘https:xxx: Failed to connect to chromium.googlesource.com port
fatal: unable to access 'https:xxx: Failed to connect to chromium.googlesource.com portfatal: unable to access 'https:xxx': Failed to connect to 127.0.0.1 port 7890 after 2035 ms:
2022-07-02 19:56:51
1065
1
原创 7、MySQL Workbench 导出导入数据库
一、数据库导出1、打开workbench->连接数据库->Server->Data Export2、选择要导出的数据库,Export Self-Contained File ->更改导出位置和数据库名->Start Export3、提示“sql has finishe”,没有error表示导出成功二、数据库导出1、Server->Data Import2、选择“Import from Self-Contained File”,选择...
2022-05-19 14:33:48
12654
原创 8、MySQL Workbench导入数据库提示Failed to open required defaults file:xxx.cnf
一、问题描述:用MySQL Workbench导入数据库时出现以下提示:mysql: [ERROR] Failed to open required defaults file: C:\Users\宋爽~1\AppData\Local\Temp\tmps16vo2el.cnfmysql: [ERROR] Fatal error in defaults handling. Program aborted!二、原因:包含了中文路径三、更改方式:把“Users”文件夹下的“宋爽~1”文件
2022-05-19 14:32:40
8912
1
原创 5、Qt使用MySQL
一、Qt和MySQL版本二、Qt使用数据库1、新建项目,在.pro中添加,并构建项目QT += sql2、添加头文件#include <QSqlDatabase>#include <QSqlQuery>#include <QSqlError>3、查询数据库驱动qDebug() << QSqlDatabase::drivers();输出,表示有以下数据库驱动:("QSQLITE", "...
2022-04-16 17:39:55
4417
1
原创 4、MySQL Workbench创建访问用户
一、创建用户1、打开MySQL Workbench,选择Server->Users and Privilegs2、点击“Add Account”,输入登录名和密码,点击“Apply”创建成功二、分配权限1、点击刚才创建的用户,选择“Schema Privileges”,点击“Add Entry”2、选择“Selected schema”,选择一个数据库,点击“OK”3、“Object Rights”全选,点击“Apply”三、创建...
2022-04-16 13:57:31
6599
1
原创 3、MySQL Workbench 对表进行增删改查
一、连接MySQL打开MySQL Workbench连接数库,进入二、创建数据库右击空白处,选择“Create Schema...”输入数据库的名,点击“Apply”显示SQL语句,点击“Apple”创建数据库成功,Final三、创建数据表点击小三角,右击“Tables”,选择“Create Table”输入数据表名添加数据库内容,双击,输入内容,点击“Apple”显示SQL语句,点击Apple数据表创...
2022-04-16 13:36:26
11027
原创 1、MySQL Workbench 8.0安装
一、MySQL Workbench下载1、进入官网,点击“DOWNLOADS”https://www.mysql.com/2、下滑找到“MySQL Community(GPL) Downloads”,3、“MySQL Workbench”4、“Download”5、“No thanks, just start my download.”,选择下载的位置,进行下载二、安装1、找到下载好的“mysql-installer-commun...
2022-04-16 12:36:11
9620
2
原创 2、Failed to connect to MySQL Server 8.0.28 after 10 attempts
安装MySQL时出现以下错误:Waiting 5 seconds before the next connection attempt...Retry 10: Attempting to connect to Mysql@localhost:3306 with user root with no password...MySQL error 1042: Unable to connect to any of the specified MySQL hosts.Failed to connect t
2022-04-16 12:33:09
2831
2
原创 Qt问题:打开Qt软件时,状态栏显示Qt图标,界面上不显示Qt软件
解决办法:删除C:\Users\10600\AppData\Roaming目录下的QtProject目录注:10600:是我电脑的用户名解决办法来自交流群里一个叫“沛县”的大佬
2022-01-25 18:39:54
811
原创 6、Qt QSS界面美化
一、功能介绍1、根据刘典武大佬和网上查询的资料,进行更改https://gitee.com/feiyangqingyun/QWidgetDemo#https://gitee.com/feiyangqingyun/qtkaifajingyan2、使用QSS对界面进行美化3、点击按钮,进行界面样式切换(银色和黑色)二、项目创建1、新建Qt Widgets应用,名称为MyQSS,基类选择QMainWindow;在界面上添加要进行美化的控件3、下载图标iconfont-阿.
2021-11-23 19:03:34
4368
原创 4、Qt设备识别(简单的密钥生成器)
一、功能描述1、软件A首次运行弹出输入注册码(密钥)对话框,点击“获取机器码”,把机器码发送给商家;2、商家使用密钥生成器(软件B)生成注册码(密钥),给软件A;3、软件A输入注册码,点击“确认”,软件正常启动;4、第二次运行软件A时,若还是同一台电脑,则直接正常运行;若不是同一台电脑则弹出输入注册码对话框;二、创建工程A三、代码A演示四、创建工程B五、代码B演示六、运行测试...
2021-11-12 20:13:52
4700
9
原创 Qt错误:QCoreApplication::applicationDirPath: Please instantiate the QApplication object firs
问题描述:运行Qt程序,提示以下错误QCoreApplication::applicationDirPath: Please instantiate the QApplication object firstQWidget: Must construct a QApplication before a QWidget16:25:58: 程序异常结束。原因:程序以debug模式运行,却调用relase版本的dll解决办法:程序以release模式运行...
2021-11-02 16:37:06
4650
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅