2
votes

Could you pls tell me for class QTreeView How to change vertical scroll bar styles(shape and color etc) through coding?

Thanks.

1

1 Answers

1
votes

You just need to set stylesheet for your scroll bar, for example:

myQTreeView->verticalScrollBar()->setStyleSheet(
    "background-color: #EAF5FF;"
    "alternate-background-color: #D5EAFF;"
);