How to Disable and Enable selection for a item in QListWideget using Python

2,955 views
Skip to first unread message

Rishis3D

unread,
Apr 17, 2014, 2:20:15 AM4/17/14
to python_in...@googlegroups.com
hi guys im doing a tools using a Qlistwidget to list selected objects... and i want to enable and disable functionalists for a particular items in tat list..
how to achieve this in PyQt?

thanks.

Marcus Ottosson

unread,
Apr 17, 2014, 2:38:29 AM4/17/14
to python_in...@googlegroups.com
Have a look at the QListWidgetItem.setFlags

>>> my_item.setFlags(QtCore.Qt.NoItemFlags)



--
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/d9b65935-5a66-411e-897b-bd6702bcb887%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Reply all
Reply to author
Forward
0 new messages