上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 33 下一页
摘要: 一、下载地址: 链接 二、进入下载好的QXlsx目录下,取出QXlsx目录和README.md待用 三、用qt创建一个简单的cmake工程,将QXlsx目录和README.md文件放到cmakelists.txt所在目录 四、修改cmakelists.txt文件 cmake_minimum_requ 阅读全文
posted @ 2023-10-20 20:18 雾枫 阅读(454) 评论(0) 推荐(0) 编辑
摘要: // 用于给表格设置正则表达式, // table视图 QTableView // table模型 QStandardItemModel // 使用示例: // wangchuan::RegExp::InputDelegate* inputDelegate = new wangchuan::RegE 阅读全文
posted @ 2023-10-18 18:42 雾枫 阅读(97) 评论(0) 推荐(0) 编辑
摘要: QRegExp rx("[^\\s]+$"); QRegExpValidator *validator = new QRegExpValidator(rx, this); ui->lineedit->setValidator(validator);正则表达式参考链接:https://blog.csd 阅读全文
posted @ 2023-10-18 15:14 雾枫 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 一、界面的参数与配置文件(或数据库)有关联时 1、修改了界面的上参数值,但是没有保存到文件(或数据库)时,再次打开这个界面时要将文件(或数据库)中的数据重新读一下,写入到界面的参数选项中,以保存界面上显示的参数统一。 2、打开一个表格窗口,选择一个单元格后,没有操作,直接关闭表格窗口。再次打开表格窗 阅读全文
posted @ 2023-10-07 11:16 雾枫 阅读(35) 评论(0) 推荐(0) 编辑
摘要: for(int i=0;i<m_model->rowCount();i++) { //删除航点后,给前面的序号重新排序 m_model->item(i,0)->setText(QString::number(i+1)); } 阅读全文
posted @ 2023-09-20 14:41 雾枫 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 报错显示: Running /home/wc/software/cmake-3.26.3-linux-x86_64/bin/cmake /home/wc/work/junke_src/missile-sim '-GCodeBlocks - Unix Makefiles' in /home/wc/wo 阅读全文
posted @ 2023-09-07 20:21 雾枫 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-09-04 14:42 雾枫 阅读(11) 评论(0) 推荐(0) 编辑
摘要: #ifndef WANGCHUAN_H #define WANGCHUAN_H #define WC_QT 1 // 如果当前项目是qt则置1,纯c++则置0 #if WC_QT #include <QGuiApplication> #include <QPixmap> #include <QWid 阅读全文
posted @ 2023-08-29 19:39 雾枫 阅读(34) 评论(0) 推荐(0) 编辑
摘要: setWindowFlags(Qt::Tool);//不在任务栏显示 阅读全文
posted @ 2023-08-07 19:51 雾枫 阅读(95) 评论(0) 推荐(0) 编辑
摘要: /*重写该函数*/ void MainWindow::changeEvent(QEvent *event) { if(QEvent::WindowStateChange == event->type()) { QWindowStateChangeEvent * stateEvent = dynami 阅读全文
posted @ 2023-07-11 14:12 雾枫 阅读(827) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 33 下一页