import QtQuick 2.12 import QtQuick.Layouts 1.12 import Controls 1.0 import Utils 1.0 GridLayout { columns: 2 columnSpacing: Ui.scale(8) rowSpacing: Ui.scale(4) property string label property string indicator property alias value: valueField SecondaryLabel { text: label topPadding: lineCount == 1 ? Ui.scale(12) : 0 Layout.columnSpan: 2 Layout.fillWidth: true } TextField { id: valueField selectByMouse: true Layout.fillWidth: true } IndicatorLabel { text: indicator Layout.preferredWidth: Ui.scale(18) } }