Qt5官方demo解析集系列教程(一共37个):https://blog.csdn.net/cloud_castle/article/category/2123873/2?
或者
https://www.kancloud.cn/cloudcastle/qt5-demo/109880
Scene Graph - Painted Item
官方英文文档
https://doc.qt.io/qt-5/qtquick-customitems-painteditem-example.html
Chapter 6: Writing an Extension Plugin
将C++定义的类创建为供QML使用的插件
地址:https://www.kancloud.cn/cloudcastle/qt5-demo/109880