0
このコードでTabBarタブの背景色を設定しようとしましたが、選択したタブの色のみが変更されました。他のタブの色を設定するにはどうしたらいいですか?また、どのようにタブのテキストの色を設定できますか?Qml TabBarタブの色を設定しますか?
TabBar {
id: tabBar
currentIndex: swipeView.currentIndex
background: Rectangle {
color: "#f4d37c"
}
TabButton {
id: cardsTabButton
height: Style.line2Height
text: qsTr("Cards")
}
TabButton {
id: errorsTabButton
height: Style.line2Height
text: qsTr("Errors")
}
}
(左のタブが選択されている)