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. Using a QCompletion successively on a QLineEdit

Using a QCompletion successively on a QLineEdit

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 528 Views
  • 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.
  • osssomeO Offline
    osssomeO Offline
    osssome
    wrote on last edited by osssome
    #1

    Hi There,

    Suppose I have a single blank QLineEdit with a QCompletion. In the list I have "brown", "brick", "broccoli", "brim", and "bromide".

    I want to hawe the completion repeatedly help me so that the QLineEdit can end up with a result like "brim brick bromide". This means that in this case the completion view would show 3 times.

    Should I repatedly rebuild the list for the QCompletion after every edit event? Is there a far better way?

    Thanks

    1 Reply Last reply
    0
    • osssomeO Offline
      osssomeO Offline
      osssome
      wrote on last edited by
      #2

      I'm going to see if this will help me:

      http://doc.qt.io/qt-5/qtwidgets-tools-treemodelcompleter-example.html

      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