Adding addition search condition for QSortProxyModel

30 views
Skip to first unread message

Bay

unread,
Nov 8, 2013, 8:00:12 PM11/8/13
to python_in...@googlegroups.com


Hi all, 

             Currently I'm building a PyQT GUI that would store selections by the user as demonstrated by the picture attached. The line edit(Search Box) you see above the modelview is what the user would use to search for a selection, while the QComboxbox above it contains the list of namespaces there are in the list. 



What I would like is for the QComboxBox to be able to filter all the entries to display only the selected namespace, could anyone give a suggestion as to how I can achieve that? Thank you for any suggestions given. 

Thank you
Gann Boon Bay

Justin Israel

unread,
Nov 8, 2013, 10:45:06 PM11/8/13
to python_in...@googlegroups.com

On your proxy, use setFilterKeyColumn(1) and then setFilterFixedString() to your namespace value.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/54842d10-1440-43b8-a700-0cfef839e3b0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Bay

unread,
Nov 10, 2013, 1:42:00 PM11/10/13
to python_in...@googlegroups.com
Hi Justin, 
             thank you so much again for the assistance! Your suggestions were what I was looking for. 
Reply all
Reply to author
Forward
0 new messages