Qcompleter con SQL

QSqlTableModel * model = new QSqlTableModel(this,db);
model->setTable( "Customer" );
model->select();

QCompleter *Account_completer = new QCompleter(model, this);
completer->setCompletionColumn(someIndex);

ui->somelineedit->setCompleter(Account_completer);
Tense Tern