会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RedWetPlace
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
16
17
18
19
20
21
22
23
24
···
33
下一页
2022年10月13日
QT——QTreeWidget树形控件,点击节点,获取给节点设定的编号
摘要: connect(ui.treewidget, SIGNAL(itemClicked(QTreeWidgetItem * , int )), this,SLOT(wc_fun_treewidgetTest(QTreeWidgetItem * , int ))); void Mainwidget::wc
阅读全文
posted @ 2022-10-13 21:13 雾枫
阅读(730)
评论(0)
推荐(0)
2022年10月12日
QT——QVector二维数组使用注意事项
摘要: QVector<QVector<QString>> Vector(5); //必须先给定数组大小 Vector[i].append( wc_object_jsonobject.value("item").toString());
阅读全文
posted @ 2022-10-12 16:45 雾枫
阅读(381)
评论(0)
推荐(0)
2022年10月11日
c++中使用and
摘要: #include <iso646.h> int main() { int a =0; int b =1; bool = a and b; }
阅读全文
posted @ 2022-10-11 22:27 雾枫
阅读(206)
评论(0)
推荐(0)
2022年10月9日
QT——设置Qtablewidget指定单元格不能编辑
摘要: QTableWidgetItem* pItem = ui.tablewidget->item(iRowIndex, iColIndex); //获取该单元格的pItem pItem->setFlags(Qt::ItemIsEditable);
阅读全文
posted @ 2022-10-09 15:54 雾枫
阅读(381)
评论(0)
推荐(0)
QT——QTableWidget样式设计
摘要: 链接1 链接2 (1)创建一个新的表格控件 QTableWidget *table=new QTableWidget(); (2)设置列数 table->setColumnCount(3);//设置3列 注意:如果内容超过3列,则无法显示超过3列的内容,所以需要看情况重新设置列数 (3)设置行数 t
阅读全文
posted @ 2022-10-09 15:46 雾枫
阅读(1781)
评论(0)
推荐(0)
2022年10月8日
QT——代码布局
摘要: #include "w_titlebarwidget.h" #include <QLabel> #include <QToolButton> #include <QHBoxLayout> #include <QDesktopWidget> #include <QApplication> #inclu
阅读全文
posted @ 2022-10-08 20:47 雾枫
阅读(71)
评论(0)
推荐(0)
QT——代码添加弹簧,QSpacerItem
摘要: 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 雾枫
阅读(878)
评论(0)
推荐(0)
2022年10月6日
QT——删除文件夹(目录)下的所有内容
摘要: 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 雾枫
阅读(1022)
评论(0)
推荐(0)
QT——删除目录(文件夹)
摘要: QString path = "D:\\file\\test"; QDir dir(path); dir.removeRecursively();
阅读全文
posted @ 2022-10-06 00:28 雾枫
阅读(124)
评论(0)
推荐(0)
2022年9月30日
c++ 头文件和源文件的关系
摘要: 链接 头文件如何来关联源文件? 已知头文件“a.h”声明了一系列函数(仅有函数原型,没有函数实现),“b.cpp”中实现了这些函数,那么如果我想在“c.cpp”中使用“a.h”中声明的这些在“b.cpp”中实现的函数,通常都是在“c.cpp”中使用#include “a.h”,那么c.cpp是怎样找
阅读全文
posted @ 2022-09-30 11:59 雾枫
阅读(129)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
24
···
33
下一页
公告