mirror of
https://github.com/allankoechke/QMLDashboard.git
synced 2026-12-01 09:07:38 +00:00
19 lines
378 B
QML
19 lines
378 B
QML
import QtQuick 2.12
|
|
import QtQuick.Controls 2.12
|
|
|
|
TextField {
|
|
property string placeholder
|
|
property int rectWidth
|
|
id: control
|
|
|
|
placeholderText: " "+placeholder
|
|
|
|
background: Rectangle {
|
|
implicitWidth: rectWidth
|
|
implicitHeight: 40
|
|
color: "transparent"
|
|
radius: 5
|
|
border.color: control.enabled ? "#5e72e4" : "gray"
|
|
}
|
|
}
|