QGroupBox border

后端 未结 3 576
既然无缘
既然无缘 2021-02-07 06:02

After searching for a while I saw that they way to set a visible border on a groupbox is to use the StyleSheet property. I added:

border: 2px solid gray;
         


        
3条回答
  •  被撕碎了的回忆
    2021-02-07 06:29

    Specify a selector for the group box style such as:

    QGroupBox
    {
         border: 2px solid gray;
    }
    

    As for the gap, you can probably fix that by setting some padding. Check the docs here.

提交回复
热议问题