Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.4.1
-
None
-
Windows 11 22H2 Build 22621.963
Qt 6.4.1
Qt Creator 9.0.1
CMake 3.24.2
Ninja 1.11.0
Description
With a model like this:
auto model = new QStandardItemModel(); auto root = model->invisibleRootItem(); root->setColumnCount( 3 ); auto node1 = new QStandardItem( "Node 1" ); node1->appendRow( { new QStandardItem( "N1 C1" ), new QStandardItem( "N1 C2" ), new QStandardItem( "N1 C3" ) } ); root->appendRow( node1 ); auto node2 = new QStandardItem( "Node 2" ); node2->appendRow( { new QStandardItem( "N2 C1" ), new QStandardItem( "N2 C2" ), new QStandardItem( "N2 C3" ) } ); root->appendRow( node2 );
The QML TreeView/TreeViewDelegate, renders this:
Output:
qrc:/qt-project.org/imports/QtQuick/Controls/Fusion/TreeViewDelegate.qml:59:9: Unable to assign [undefined] to QString qrc:/qt-project.org/imports/QtQuick/Controls/Fusion/TreeViewDelegate.qml:59:9: Unable to assign [undefined] to QString ...
For QTreeView it looks like that:
I would have expected the same behaviour, is this assumption wrong?