Hey Robert,

When using a QTreeView, you have to control the row height by setting a
custom QItemDelegate on the view:
http://qt-project.org/doc/qt-4.8/qabstractitemview.html#setItemDelegate

This QItemDelegate can have a custom sizeHint which let's you choose how
big it should be given a current state. But you could just return a
constant size
http://qt-project.org/doc/qt-4.8/qabstractitemdelegate.html#sizeHint

Its a little more obscure with model/view than with the convenience widgets
like QTreeWidget. With that widget, you control the size via
QTreeWidgetItems

Let me know if you need more specific examples (answering via mobile now)

- justin
 Hello,

This relates to Justin's pyqt for maya tutorial and the custom outliner.
I can't way a way to control spacing between the rows, the text gets
difficult to read when so closely stacked up.  Any thoughts ?

Thanks,
Robert

-- 
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/df44f683-63e5-459d-adfd-7da453ddaf2e%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1aZv4vFdUp045M88WH1QfKVQVut0aruM%2BbvdCTC7amPw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to