Results 1 to 4 of 4

Thread: FindItem in QTreeView with StandardItem

  1. #1
    Join Date
    Nov 2011
    Posts
    14
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4 Qt Jambi
    Platforms
    MacOS X Windows

    Default FindItem in QTreeView with StandardItem

    Hello!

    I am working with QTreeView and I have a multilevel structure. The problem is that FindItem considers only the first sub-level. How to make it search through the all levels?

    Thank you!

  2. The following user says thank you to Mint87 for this useful post:


  3. #2
    Join Date
    May 2009
    Location
    Canada
    Posts
    163
    Thanks
    7
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows Android

    Default Re: FindItem in QTreeView with StandardItem

    Searching Google for "Qt + FindItem" gave this.

  4. The following user says thank you to Urthas for this useful post:


  5. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: FindItem in QTreeView with StandardItem

    The problem is that FindItem considers only the first sub-level.
    Neither QTreeView nor QTreeWidget has a FindItem() method.

    QTreeWidget::findItems() has perfectly good options for recursive find in trees.

  6. The following user says thank you to ChrisW67 for this useful post:


  7. #4
    Join Date
    Nov 2011
    Posts
    14
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4 Qt Jambi
    Platforms
    MacOS X Windows

    Default Re: FindItem in QTreeView with StandardItem

    Hallo, thank you for your help.
    I have solved this problem with QMap iterator.

  8. The following user says thank you to Mint87 for this useful post:


Similar Threads

  1. Help ...QTreeView
    By Raymond in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2009, 09:18
  2. QTreeView
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 4th March 2009, 19:51
  3. QTreeView. Qt.4.4.1
    By janEUcitzen in forum Qt Programming
    Replies: 1
    Last Post: 15th November 2008, 08:53
  4. QTreeView help
    By bepaald in forum Qt Programming
    Replies: 1
    Last Post: 15th August 2007, 21:22
  5. QTreeView
    By npc in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2007, 07:53

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.