Qt4-preview-feedback Archive, May 2007
item selection in model views?
Message 1 in thread
Hi,
is there an example how to get a notice that the current item of a QTreeView
changed? For the first time I saw a QItemSelectionModel, thought I have to
use it, but nothing happens. No error message, no warning, no result:
m_Selection = new QItemSelectionModel(m_Model);
connect(m_Selection, SIGNAL(currentRowChanged(const QModelIndex&,const
QModelIndex&)), SLOT(onJrnItemChanged(const QModelIndex&)));
Is this the right way or is this overpowered?
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx