Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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