QCompleter on multiple columns



  • I have an sql database app which uses QSqlQueryModel. I would like to add a search box with a QCompleter that completes on two columns, PartNo and Description.

    I would think that I'd need a proxy model to do this, but other than that have no idea as how to proceed.

    Any suggestions would be welcome.


  • Lifetime Qt Champion

    Hi,

    QAbstractProxyModel comes to mind. You can try assembling both column one on top of the other

    Hope it helps


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.