[Qt-interest] Searchable list widget
Axel Jäger
axeljaeger at googlemail.com
Sat Feb 13 15:02:47 CET 2010
Hi,
put a QSortFilterProxyModel between your model and view and a lineedit to set its filter predicate. Enable dynamicSortFilter on the proxy model and you are done
Axel
Am 13.02.2010 um 04:40 schrieb Sonic:
> Hello
>
> I'm trying to implement a searchable list widget- i.e. a list box with a line edit box on the top - something exactly same as the Qt Assistant 'index search' list.
> The list box should initially contain all entries, and when the user types in the line edit, only matching entries should be made visible in the list box.
>
> Is there any publicly available code for this widget?
>
> I implemented one on my own. It works fine (although not as slick as the Qt Assistant one) on Qt 4.5, but for some weird reason gives segfault on Qt 4.6.
>
> Any help is highly appreciated..
>
> thanks,
>
> Syam Krishnan
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100213/801af503/attachment.html
More information about the Qt-interest-old
mailing list