ttvo
2nd April 2009, 15:41
I have a QTreeView with QStandardItemModel model and QStandardItem nodes in which
1) top level folder nodes are not checkable unless it contains one of more child node(s)
2) child node is always checkable
I try to connect signal/slot to the select/deselect user interaction on checkable node
connect(model, SIGNAL(itemChanged(QStandardItem * item)), this, SLOT(myItemChanged(QStandardItem *item)));
where model is QStandardItemModel , this is MainWindow. My MainWindow::myItemChanged(...) is never called. Please help.
1) top level folder nodes are not checkable unless it contains one of more child node(s)
2) child node is always checkable
I try to connect signal/slot to the select/deselect user interaction on checkable node
connect(model, SIGNAL(itemChanged(QStandardItem * item)), this, SLOT(myItemChanged(QStandardItem *item)));
where model is QStandardItemModel , this is MainWindow. My MainWindow::myItemChanged(...) is never called. Please help.