摘要:
1. 安装qt与make(qt不会自动安装make依赖,需要注意)。 阅读全文
摘要:
https://blog.csdn.net/syzdev/article/details/80860619 阅读全文
摘要:
1. 关闭欢迎界面 运行: startmode 设置为: 0 2. 启动时显示"启动对话框" 运行命令: startup 设置值为: 1 3. 添加经典CAD空间 a. 右键右下角的齿轮小图标. b. 点击后选择"自定义" 在弹出的对话框中,左键 "新建空间". c. 点击 "自定义空间" . 4. 阅读全文
摘要:
删除原来主键字段(如id) alter table table_name drop id; 添加主键,自增,放在第一位 alter table table_name add id int(11) primary key auto_increment first; 阅读全文
摘要:
注意: 安装时选择 Dedicated machines ,或者 service machine 否则 不能远程登陆 . 卸载时一定要删除 C:/programe Data下的MySql。 查看下windows防火墙,否则容易sb。 1. 创建远程用户 create user ‘test'@'%' 阅读全文
摘要:
1. Qt默认带odbc驱动, 另外需要计算机安装odbc驱动(区分32与64位) 驱动文件为 AccessDatabaseEngine 可以采用静默方式安装 "AccessDatabaseEngine_x64.exe /quiet"。 2. 注意填写驱动名称,否则会报错。 驱动名称查找: 32位: 阅读全文
摘要:
//获取配置文件地址 #include <QtSql/QSqlDatabase> #include <QtSql/QSqlQuery> #include <QFileDialog> QString strFile = QFileDialog::getOpenFileName(NULL,tr("选择Excel配置文件"),".",tr("Exel file(*.xls *.xlsx)")); if 阅读全文
摘要:
使用QMovie头文件 QMovie *movie = new QMovie(":/images/timg.gif");//这个资源不用写到source.qrc中,只要路径对了就行,还有就是movie最好是new的 QLabel *label = new QLabel(this); label->s 阅读全文
摘要:
conky.config = { alignment = 'top_left', ackground = true, update_interval=1, double_buffer=true, imlib_cache_size=10, draw_shades=false, draw_outline 阅读全文
摘要:
#include <QSqlDatabase>#include <QMessageBox>#include <QSQLITE> //添加MySql数据库 QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL"); //连接数据库 db.setHost 阅读全文