[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: How to make QSortFilterProxyModel search through children in a
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2006-07-17 1:06:03
Message-ID: 20060717010603.GA9249 () morpheus
[Download RAW message or body]
On 16.07.06 19:57:51, Patrick Aljord wrote:
> On 7/14/06, Andreas Pakulat <apaku@gmx.de> wrote:
>
> > No, you don't need that, QTreeWidget has a setSortingEnabled function,
> > which activates/deactives sorting by clicking the header.
> thanx but what I want to do is searching through my QtreeWidget. I
> know about setSortingEnabled but I dont want to sort my columns, I
> want to search in my qtreewidget the way I can search through songs in
> amarok and to do this I need to use QSortFilterProxyModel.
Then implement your own model and use QTreeView. That one can take a
QSortFilterProxyModel. You might also want to look at the
QStandardItemModel, it seems it can also provide a tree model.
Andreas
--
You will be attacked by a beast who has the body of a wolf, the tail of
a lion, and the face of Donald Duck.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic