Hello,
I am using a QTreeWidget to display a list of names. How can I modify the color in each line? My purpose is to set the color of the background line in even or odd lines only, to have a "striped view".
Thanks!
Hello,
I am using a QTreeWidget to display a list of names. How can I modify the color in each line? My purpose is to set the color of the background line in even or odd lines only, to have a "striped view".
Thanks!
Qt Code:
treeWidget.setAlternatingRowColors(true)To copy to clipboard, switch view to plain text mode
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
Sergex (22nd April 2013)
Bookmarks