Advertisement
hongquan

TextField with RowLayout

May 29th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.16 KB | None | 0 0
  1. import QtQuick 2.2
  2. import QtQuick.Controls 1.1
  3. import QtQuick.Layouts 1.1
  4.  
  5. ColumnLayout {
  6.     spacing: 10
  7.     RowLayout {
  8.         id: rowEachWeight
  9.         Label {
  10.             text: qsTr('Total weight:')
  11.         }
  12.         Label {
  13.             text: '1'
  14.         }
  15.         TextField {
  16.             readOnly: true
  17.         }
  18.  
  19.         Label {
  20.             text: '2'
  21.         }
  22.         TextField {
  23.             readOnly: true
  24.         }
  25.  
  26.         Label {
  27.             text: '3'
  28.         }
  29.         TextField {
  30.             readOnly: true
  31.         }
  32.  
  33.         Label {
  34.             text: '4'
  35.         }
  36.         TextField {
  37.             readOnly: true
  38.         }
  39.  
  40.         Label {
  41.             text: '5'
  42.         }
  43.         TextField {
  44.             width: 75
  45.             readOnly: true
  46.         }
  47.     }
  48.     RowLayout {
  49.         Label {
  50.             text: qsTr('Mean CofG')
  51.         }
  52.         Label {
  53.             text: qsTr('X')
  54.         }
  55.         TextField {
  56.             width: 50
  57.             readOnly: true
  58.         }
  59.  
  60.         Label {
  61.             text: qsTr('Y')
  62.         }
  63.         TextField {
  64.             width: 50
  65.             readOnly: true
  66.         }
  67.     }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement