gpt4 book ai didi

qt - 如何定义qml GroupBox标题样式

转载 作者:行者123 更新时间:2023-12-04 15:23:42 25 4
gpt4 key购买 nike

    GroupBox {
title: qsTr("I want to change my style")

Layout.fillWidth: true
}

我想改变标题的颜色或大小

最佳答案

使用 setForegroundRole ( QPalette::ColorRole role ) 更改标题颜色或使用 setFont ( const QFont & ) 更改字体大小。

关于qt - 如何定义qml GroupBox标题样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21843150/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com