上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 33 下一页
摘要: 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)
摘要: QVector<QVector<QString>> Vector(5); //必须先给定数组大小 Vector[i].append( wc_object_jsonobject.value("item").toString()); 阅读全文
posted @ 2022-10-12 16:45 雾枫 阅读(381) 评论(0) 推荐(0)
摘要: #include <iso646.h> int main() { int a =0; int b =1; bool = a and b; } 阅读全文
posted @ 2022-10-11 22:27 雾枫 阅读(206) 评论(0) 推荐(0)
摘要: QTableWidgetItem* pItem = ui.tablewidget->item(iRowIndex, iColIndex); //获取该单元格的pItem pItem->setFlags(Qt::ItemIsEditable); 阅读全文
posted @ 2022-10-09 15:54 雾枫 阅读(381) 评论(0) 推荐(0)
摘要: 链接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)
摘要: #include "w_titlebarwidget.h" #include <QLabel> #include <QToolButton> #include <QHBoxLayout> #include <QDesktopWidget> #include <QApplication> #inclu 阅读全文
posted @ 2022-10-08 20:47 雾枫 阅读(71) 评论(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 雾枫 阅读(878) 评论(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 雾枫 阅读(1022) 评论(0) 推荐(0)
摘要: QString path = "D:\\file\\test"; QDir dir(path); dir.removeRecursively(); 阅读全文
posted @ 2022-10-06 00:28 雾枫 阅读(124) 评论(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 雾枫 阅读(129) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 33 下一页