EAdvancedRectangle 高级矩形
示例与代码
高级矩形
属性
属性说明取值与默认值
borderColorQColor边框颜色。
默认值
动态绑定borderStyleQt::PenStyle边框的线条样式。
Qt.NoPenQt.SolidLineQt.DashLineQt.DotLineQt.DashDotLineQt.DashDotDotLineQt.CustomDashLine
默认值
Qt.SolidLineborderWidthqreal边框、分隔线或进度轨道的线宽,单位为像素。
默认值
0colorQColor自定义颜色;透明值通常表示使用当前主题或语义配色。
默认值
动态绑定dashPatternQVector<qreal>自定义虚线段长及间隔组成的数组。
[实线长度, 间隔, …]
默认值
[]enabledbool是否允许交互;false 时控件禁用。
默认值
trueheightreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitHeightradiusQList<int>四个角的圆角半径,单位为像素,缺失项按 0 处理。
[左上, 右上, 右下, 左下]
默认值
[0, 0, 0, 0]visiblebool是否显示组件。
默认值
truewidthreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitWidth