上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 33 下一页
摘要: QTableWidgetItem* pItem = ui.tablewidget->item(iRowIndex, iColIndex); //获取该单元格的pItem pItem->setFlags(Qt::ItemIsEditable); 阅读全文
posted @ 2022-10-09 15:54 雾枫 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 链接1 链接2 (1)创建一个新的表格控件 QTableWidget *table=new QTableWidget(); (2)设置列数 table->setColumnCount(3);//设置3列 注意:如果内容超过3列,则无法显示超过3列的内容,所以需要看情况重新设置列数 (3)设置行数 t 阅读全文
posted @ 2022-10-09 15:46 雾枫 阅读(1433) 评论(0) 推荐(0) 编辑
摘要: #include "w_titlebarwidget.h" #include <QLabel> #include <QToolButton> #include <QHBoxLayout> #include <QDesktopWidget> #include <QApplication> #inclu 阅读全文
posted @ 2022-10-08 20:47 雾枫 阅读(59) 评论(0) 推荐(0) 编辑
摘要: QWidget *w=new QWidget(this); w->setGeometry(0,0,500,80); QHBoxLayout *layout=new QHBoxLayout; QPushButton *button1=new QPushButton; QPushButton *butt 阅读全文
posted @ 2022-10-08 20:23 雾枫 阅读(510) 评论(0) 推荐(0) 编辑
摘要: bool clearDir(QString path) { if (path.isEmpty()) { return false; } QDir dir(path); if (!dir.exists()) { return false; } dir.setFilter(QDir::AllEntrie 阅读全文
posted @ 2022-10-06 00:41 雾枫 阅读(685) 评论(0) 推荐(0) 编辑
摘要: QString path = "D:\\file\\test"; QDir dir(path); dir.removeRecursively(); 阅读全文
posted @ 2022-10-06 00:28 雾枫 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 链接 头文件如何来关联源文件? 已知头文件“a.h”声明了一系列函数(仅有函数原型,没有函数实现),“b.cpp”中实现了这些函数,那么如果我想在“c.cpp”中使用“a.h”中声明的这些在“b.cpp”中实现的函数,通常都是在“c.cpp”中使用#include “a.h”,那么c.cpp是怎样找 阅读全文
posted @ 2022-09-30 11:59 雾枫 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 链接一 阅读全文
posted @ 2022-09-29 22:03 雾枫 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原文链接 阅读全文
posted @ 2022-09-29 14:30 雾枫 阅读(12) 评论(0) 推荐(0) 编辑
摘要: vs+qt 动态库无法解析外部符号的问题 原文链接 https://itcn.blog/p/0541664353.html 1、问题描述:无法解析的外部符号 解决方案:引用的库没有引用进来,结局方案如下: (1)先看一下生成的库输入位置在哪里。在动态库项目右击,选择“属性”->链接器->常规->输出 阅读全文
posted @ 2022-09-29 11:30 雾枫 阅读(619) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 33 下一页