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

Query LineEdit Widget with a Popup List Dialog



  • Hi, guys,

    I want to make a new widget like the path entry widget in the file explorer of windows, or the path entry in Firefox.
    There is a line edit widget, and while you are typing in some letters, it will pop up a list dialog with items which start with the letters you are typing in the line edit.
    I know the ComboBox has similar function, but to search items in the popup list dialog, you must type in letters very quick. It's not easy if you want to search items which start with a long word.

    So is there any built-in widget in Qt which has this type of function?
    Or we need to build ourselves?

    Thanks.



  • Take a look at QLineEdit::setCompleter



  • Great!
    Thank you so much!
    Qt is really powerful!!!!


Log in to reply