qt 控件样式表

https://doc.qt.io/qt-5/stylesheet-reference.html


QLabel的显示圆形

const QString m_red_SheetStyle = "min- 16px; min-height: 16px;max-16px; max-height: 16px;border-radius: 8px;  border:1px solid black;background:red";


min-     16px;     //最小宽度 16px
min-height:    16px;     //最小高度 16px
max-     16px;     //最大宽度 16px
max-height:    16px;     //最大高度 16px
border-radius: 8px;      //边框是圆角,半径8px
border:1px solid black;  //边框1px,边框黑色
background: red;        //背景是红色
————————————————


更改字体大小和颜色


font-size: 20px;

color: #5A8BFE;

原文地址:https://www.cnblogs.com/cute/p/15376121.html