1

我目前正在使用QTreeView,我想在控件获得焦点时更改小部件的边框/框架。

我已经尝试了不同的设置,但到目前为止,它们都没有奏效。

有人知道吗?

4

1 回答 1

0

You can set stylesheet for QTreeView to change the border as per requirement. Some examples are given here. QTreeView has stylesheet properties : frameShape, frameShadow, border, border-top-color, border-bottom-color. You can modify these properties to get the desired border style.

于 2012-12-04T13:05:09.180 回答