I have the declaration of signal in "tree.h":
...
signals:
void doubleClicked(const QModelIndex & index);
...
then in constructor I connect:
connect(this, SIGNAL(doubleClicked(const QModelIndex&)), SLOT(sm(const QModelIndex&)));
Nothing works and I get runtime message:
QMetaObject::indexOfSignal: signal doubleClicked(QModelIndex) from QTreeView redefined in Tree...
I'm trying to solve it for several hours but in vain!
Thanx in advance!!!