If you are going with a delegate then you need to paint it yourself. QStyle has the ability to draw controls in the way the actual QWidgets work. Another way could be to keep a private custom widget that you built to look like this, and using widget.render() to draw it onto your painter.
If that is too complex for you, then you could go with the QListWidget approach and set the widget for each item. Or you could manage a QVBoxLayout with your list of widgets. But that loses the ability to naturally be driven by a model.
--
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/ce941c89-d711-4cd3-85f5-cee989f94697%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin, QListWidget.setItemWidget is indeed useful. Thank you for pointing me towards it. Pls check the attached image which is a successful implementation on this technique.
On a different thought, i would still like to implement a modelView based workflow in order to benefit from managing data dynamically, any thoughts on that?
--
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/82c57211-4245-47de-89a7-70d8420dd2e3%40googlegroups.com.