/*
MyComboBox.qml
*/
import QtQuick 2.12
import QtQuick.Controls 2.12
ComboBox {
id: control
background: Rectangle {
anchors.fill: parent
color: "#327FB5"
}
contentItem: Rectangle {
color: background.color
Label{
anchors.fill: parent
leftPadding: 10
color: "white"
text: currentText
font.pixelSize: parent.height
QML自定义控件: ComboBox
最新推荐文章于 2023-12-25 00:08:36 发布