PDA

View Full Version : Question on checkable QStandardItem in QTreeView



ttvo
2nd April 2009, 16: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.

wysota
3rd April 2009, 01:30
http://www.qtcentre.org/forum/faq.php?faq=qt_signalslot#faq_qt_signalslot_with_n ames