Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #QCompleter #sql
ADD COMMENT
Topic
Name
8+4 =