Advertisement
Guest User

Untitled

a guest
Jun 11th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.33 KB | None | 0 0
  1.  
  2.     GridLayout {
  3.         columns: 2
  4.         width: window.width
  5.         height: window.height
  6.  
  7.         Rectangle {
  8.             Layout.preferredWidth: 250
  9.             Layout.preferredHeight: parent.height
  10.             color: "orange"
  11.         }
  12.  
  13.         ColumnLayout {
  14.             Layout.fillWidth: true
  15.             Layout.fillHeight: true
  16.  
  17.             RowLayout {
  18.                 Layout.fillWidth: true
  19.                 Layout.preferredHeight: 40
  20.            
  21.                 Rectangle {
  22.                     Layout.preferredWidth: 40
  23.                     Layout.preferredHeight: parent.height
  24.                     color: "red"
  25.  
  26.                     MouseArea {
  27.                         anchors.fill: parent
  28.                     }
  29.                 }
  30.  
  31.                 Rectangle {
  32.                     Layout.preferredWidth: parent.width * 0.80
  33.                     Layout.preferredHeight: parent.height
  34.                     color: "blue"
  35.                 }
  36.                
  37.                 Rectangle {
  38.                     Layout.fillWidth: true
  39.                     Layout.preferredHeight: parent.height
  40.                     color: "green"
  41.                 }
  42.             }
  43.             Rectangle {
  44.                 Layout.fillWidth: true
  45.                 Layout.fillHeight: true
  46.                 color: "pink"
  47.             }
  48.         }
  49.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement