为了扩展TreeView的节点以显示当前选定的项(由共享选择模型设置),我需要递归调用TreeView.expand(QModelIndex)。property isValid cannot be called as a functiondo {} while (oneUp.isValid());
但是我无法在QML
QMLTreeView有一个名为: doubleClicked(QModelIndex)的信号它可能将C++ QObject:: connect () ??中的现有信号连接起来。QModelIndex)), this, SLOT(slotModelClicked(QModelIndex)));QObject::connect: No such signal TreeView_QMLTYPE_63_QML_68::doubleClicked(QModelIndex) in '