Hi,
I'm trying to get a tableview scroll to the current index I get from completer->currentIndex but I'm having no luck

Qt Code:
  1. PlaceDialog::PlaceDialog(QWidget *parent, QString def, QString filename)
  2. {
  3. // etc
  4. completer = new QCompleter(this);
  5. completer->setCompletionMode( QCompleter::InlineCompletion);
  6. completer->setCaseSensitivity(Qt::CaseInsensitive);
  7. completer->setModel(model);
  8. edit = new LineEdit(this);
  9. connect(edit, SIGNAL(textChanged(QString)), this, SLOT(edited(QString)));
  10. edit->setCompleter(completer);
  11. //etc
  12. }
  13.  
  14. void PlaceDialog::edited(QString s)
  15. {
  16. QDebug()<s << completer->currentCompletion() << completer->currentIndex();
  17. table->setCurrentIndex(completer->currentIndex());
  18. }
To copy to clipboard, switch view to plain text mode 

I can see the completer working, the lineedit is filled with the completing but the index stays at 0.