This project provides a QML Tree View with a C++ Tree Model for Qt 5.15 and QuickControls 2. Since Qt 6.3 TreeView has been added as standard component. It is suggested to use the standard one.
This is the Qt Example for a "Simple Tree Model" but converted to using a QML TreeView instead of a QTreeView widget. It is using a QAbstractItemModel to represent the tree model.
前回はQtで使用されているQMLとC++ 2つの言語について解説を行いました。 今回はQtの難易度を上げている理由の1つでもある QMLとC++を分離している理由やQtに込められている設計思想について 書いてみたいと思います。 前回、C++とQMLが分かれているのは ...