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:
cc->setModel( model ); cc->setCompletionColumn(2); cc->setCaseSensitivity( Qt::CaseInsensitive ); 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!




Reply With Quote
Bookmarks