Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Query LineEdit Widget with a Popup List Dialog
Qt 6.12 LTS is out! See what's new in the release blog

Query LineEdit Widget with a Popup List Dialog

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Take a look at QLineEdit::setCompleter

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt
        • Unsolved