daniels
daniels

Reputation: 19193

Customize a Qt Tree Widget

Is it possible to customize a tree widget so that the full row will be selected and also move the items a little to the left so that there will not be that much white space?

I would like it to get it looking like this:

alt text

Instead of the default look that is this:

alt text

Upvotes: 1

Views: 1103

Answers (1)

Phil Hannent
Phil Hannent

Reputation: 12317

What you perhaps are looking for is setIndentation() which currently defaults to 20 pixels.

http://doc.trolltech.com/4.4/qtreeview.html#indentation-prop

Upvotes: 3

Related Questions