12 2023 档案

摘要:上一个记录地址:(https://www.cnblogs.com/NekoBlog/p/17869939.html) 在TreeView视图中呼出菜单(右键) Qt为QWidget提供了单独的菜单信号 void customContextMenuRequested(const QPoint &pos 阅读全文
posted @ 2023-12-03 15:50 Neko_Code 阅读(394) 评论(0) 推荐(0)
摘要://创建以ui文件中对应View为载体的model<-此处使用QStandardItemModel(比较常用) QStandardItemModel* model = new QStandardItemModel(ui->treeView); model->setHorizontalHeaderLa 阅读全文
posted @ 2023-12-01 16:09 Neko_Code 阅读(513) 评论(0) 推荐(0)