Thanks ChrisW67,
I tried this but it returns 0 always:
Qt Code:
  1. connect(completer, SIGNAL(activated(QModelIndex)), this, SLOT(myslot(QModelIndex)));
  2.  
  3. void MyClass::slot_searched(QModelIndex index)
  4. {
  5. qDebug() << index.column(); // always returns 0
  6. qDebug() << index.row(); // always returns 0
  7. }
To copy to clipboard, switch view to plain text mode