Results 1 to 3 of 3

Thread: QAbstractItemModel and select folder after found match

  1. #1
    Join Date
    Aug 2011
    Posts
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QAbstractItemModel and select folder after found match

    I can found existing parent item when using model class match() function which return valid QModelIndexList. However, how I will activated or 'selected it' in Qt 5 when using model as tree model ?

    I'am using QAbstractItemModel and I called it from QML side via other model class.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QAbstractItemModel and select folder after found match

    QML DelegateModel can be used to see the children of a tree model's node as a list model.

    Cheers,
    _

  3. #3
    Join Date
    Aug 2011
    Posts
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QAbstractItemModel and select folder after found match

    Ok I see, thanks.

Similar Threads

  1. Replies: 1
    Last Post: 28th April 2016, 17:37
  2. Replies: 0
    Last Post: 5th April 2012, 15:28
  3. g++ not found in MinGW/bin/ folder
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 2
    Last Post: 20th June 2011, 12:08
  4. Replies: 0
    Last Post: 13th October 2010, 05:27
  5. Replies: 1
    Last Post: 19th January 2010, 22:35

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.