会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
RedWetPlace
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
5
6
7
8
9
10
11
12
13
···
33
下一页
2023年10月20日
QT cmake工程使用QXlsx源码操作execl,无需编译QXlsx,也不需要下载其他东西,windows和ubuntu都可以
摘要: 一、下载地址: 链接 二、进入下载好的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)
编辑
2023年10月18日
Qt 表格设置表格单元的输入正则表达式
摘要: // 用于给表格设置正则表达式, // table视图 QTableView // table模型 QStandardItemModel // 使用示例: // wangchuan::RegExp::InputDelegate* inputDelegate = new wangchuan::RegE
阅读全文
posted @ 2023-10-18 18:42 雾枫
阅读(97)
评论(0)
推荐(0)
编辑
QT 禁止QLineEdit输入空格、空值
摘要: 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)
编辑
2023年10月7日
界面参数的修改、保存、取消修改、等关系
摘要: 一、界面的参数与配置文件(或数据库)有关联时 1、修改了界面的上参数值,但是没有保存到文件(或数据库)时,再次打开这个界面时要将文件(或数据库)中的数据重新读一下,写入到界面的参数选项中,以保存界面上显示的参数统一。 2、打开一个表格窗口,选择一个单元格后,没有操作,直接关闭表格窗口。再次打开表格窗
阅读全文
posted @ 2023-10-07 11:16 雾枫
阅读(35)
评论(0)
推荐(0)
编辑
2023年9月20日
qt 表格,删除中间的某行后,对首列序号进行顺序排序
摘要: 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)
编辑
2023年9月7日
qt程序调用cuda-11.7,cmake编译时,提示:"CMakeCUDACompilerId.cu" failed. Compiler: /usr/local/cuda/bin/nvcc Build flags: Id flags: --keep;--keep-dir;tmp -v
摘要: 报错显示: 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)
编辑
2023年9月4日
ui界面参考示例
摘要:
阅读全文
posted @ 2023-09-04 14:42 雾枫
阅读(11)
评论(0)
推荐(0)
编辑
2023年8月29日
我的工具 Qt( 1.< 截图工具> 、2. <流布局,自动换行>、3. <基本消息框>、4.<正则表达式,包含给表格设置>、5.<文件目录操作、读写,拷贝,删除,清空等>、6.<输出信息到屏幕,精确显示信息所在的文件的行>)
摘要: #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)
编辑
2023年8月7日
qt 子窗口不设置父窗口,但是可以随主创口一同关闭的实现
摘要: setWindowFlags(Qt::Tool);//不在任务栏显示
阅读全文
posted @ 2023-08-07 19:51 雾枫
阅读(95)
评论(0)
推荐(0)
编辑
2023年7月11日
获取qt窗口的三种变化状态的事件,最小化、正常、最大化
摘要: /*重写该函数*/ 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
下一页
公告