Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Query LineEdit Widget with a Popup List Dialog
Forum Updated to NodeBB v4.3 + New Features

Query LineEdit Widget with a Popup List Dialog

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • A Offline
    A Offline
    ausn_63
    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
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #2

      Take a look at QLineEdit::setCompleter

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ausn_63
        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 Extensions
        • Unsolved