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. Search in QTreeWidget with QCompleter

Search in QTreeWidget with QCompleter

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 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.
  • L Offline
    L Offline
    laurent bauer
    wrote on last edited by
    #1

    Hello,

    I'd like to make a global search on items of a QTreeWidget, just like QTreeWidget::find() does it.
    However, I'd like to use a QCompleter to display the results of the search.

    Using QCompleter::setModel(treeWidget->model() ) let you work on a branch of the tree, not on the complete tree.
    The "Tree Model Completer Example" requires to define the path to the item. It doesn't provide a global search.

    Is there an elegant and existing solution ? (did I missed something in the documentation?)

    Thanks in adavance
    Laurent

    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