QT QML Lesson7:仿界面开发之树状列表(TreeView)

目的

  1. 掌握QML中使用Model/View框架
  2. 掌握TreeView
  3. 逐步仿制以下界面
    这里写图片描述
    5 仿制效果
    这里写图片描述

主要内容

  1. Model部分封装数据结构,由C++实现
  2. 通过Plugin机制,QML加载
  3. TreeView展示Model
  4. rowDelegate和itemDelegate通过委托改变显示效果
  5. headerVisible控制显示

项目源码

https://gitee.com/lxmuyu/QML_Lesson.git

猜你喜欢

转载自blog.csdn.net/lxmuyu/article/details/80919685