TextInputRow.qml 706 B

123456789101112131415161718192021222324252627282930
  1. import QtQuick 2.9
  2. import QtQuick.Layouts 1.2
  3. RowLayout {
  4. property alias label: labelItem.text
  5. property alias text: inputItem.text
  6. height: 70
  7. spacing: 10
  8. PrimaryText {
  9. id: labelItem
  10. Layout.alignment: Qt.AlignBottom
  11. Layout.minimumWidth: 100
  12. Layout.maximumWidth: 100
  13. Layout.margins: 10
  14. }
  15. TextInput {
  16. id: inputItem
  17. Layout.fillWidth: true
  18. Layout.margins: 10
  19. Layout.alignment: Qt.AlignBottom
  20. font.pointSize: 12
  21. color: "#ffffff"
  22. Rectangle {
  23. anchors.top: inputItem.bottom
  24. width: inputItem.width
  25. color: "#cfdfe7"
  26. height: 1
  27. }
  28. }
  29. }