qt学习
mrj4124
程序人生就是无极限
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
qt删除特定路径下的文件
1、确定目录 QString dirPath = "../Data1/"; dirPath.append(treeWidget->currentItem()->text(0)); dirPath.append("/"); DeleteDirectory(dirPath);//实现在下面 2、删除函数 bool LWD::DeleteDirectory(co...原创 2020-03-06 15:40:28 · 2640 阅读 · 0 评论 -
tableView 属性总结 及vtkRenderer所有actor的遍历
1、tableView 表格设置属性总结 ui.tableView_2->setItemDelegateForColumn(0, readOnlyDelegate);//然后把它设给只读的列 ui.tableView_2->verticalHeader()->hide();//可将将行序列号隐藏; ui.tableView_2->horizon...原创 2020-03-05 16:22:26 · 1025 阅读 · 0 评论 -
qt 的子窗口和主窗口之间信息互传(通过信号 槽的方式)
1、子窗口向主窗口传 son.h class son:Public QDialog { Q_OBJECT public: son(QWidget *parent = Q_NULLPTR); private: Ui::SonClass ui; signals: void sendData(QString);//信号函数 private slots: void...原创 2019-12-31 16:53:44 · 4249 阅读 · 0 评论 -
qt 通过stackedWidget在主页面中加载子页面
1、在主页面中拉出stackedWidget框框; 2、设计并生成子页面,可以是dialog 或widget; 3、将子页面的 son.h son.cpp 载入工程中,并将ui_son.h文件与主页面的 ui_MainWindow.h文件放在一起; 4、MainWindow .h class MainWindow : public QMainWindow {Q_OBJECT pu...原创 2019-12-30 19:54:23 · 1944 阅读 · 1 评论
分享