guys i want to make a lineEdit complete its field from a QTableModel colum , the problem that it completes from other colum not the one i choose
Qt Code:
  1. QCompleter* cc = new QCompleter( this ) ;
  2. cc->setModel( model );
  3. cc->setCompletionColumn(2);
  4. cc->setCompletionMode(QCompleter::PopupCompletion);
  5. cc->setCaseSensitivity( Qt::CaseInsensitive );
  6. lineEdit->setCompleter(cc);
To copy to clipboard, switch view to plain text mode 

shouldn't it display colum 2 in the model ?
it is displaying the colum 0 , the primary key!