python - Painting QTreeViewItem expand buttons and sibling/child lines -


I am using a curie view and a quintum deagle to supplement the regularity of most colors. However, expansion / concise buttons and brother / hair lines are automatically prepared by any other paint regularly.

What is their illustration, and how can I control it?

Edit:

Now, Qt draws a QTreeView item in this sequence:

[expand button] - [checkbox] - [rest of the tree Stuff]

I want to attract it in this order:

[checkbox] - [expand button] - [rest of macro content]

The problem It is in QItemDelegate that all my painting detail is on the right side of the button.

You can change using one of those styles in the example sheet reference:

  QTreeView :: branch: is-siblings! Adjoins-item {border-image: url (vline.png) 0; } QTreeView :: branch: is-siblings: adjoins-item {border-image: url (branch-more.png) 0; } QTreeView :: Branch:! -Baby :! Has-siblings: adjoins-item {border-image: url (branch-end page) 0; } QTreeView :: Branch: Children are:! Is-siblings: closed, QTreeView :: branch: closed: is-children: are-siblings {border-image: none; Image: URL (branch-off page); } QTreeView :: Branch: Open: Have-Kids:! Is-siblings, QTreeView :: branch: open: have-children: are-siblings {border-image: none; Image: URL (open branch); }   

Where png file names you want to use.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -