Advertisement
Guest User

Untitled

a guest
Jun 11th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.44 KB | None | 0 0
  1. import QtQuick 2.12
  2. import QtQuick.Controls 2.12
  3. import QtQuick.Layouts 1.12
  4.  
  5. ApplicationWindow {
  6.     id: window
  7.     title: "MegaManga"
  8.     minimumWidth: 640
  9.     minimumHeight: 480
  10.     visible: true
  11.  
  12.     GridLayout {
  13.         columns: 2
  14.         width: window.width
  15.         height: window.height
  16.  
  17.         Rectangle {
  18.             Layout.preferredWidth: 250
  19.             Layout.preferredHeight: parent.height
  20.             color: "orange"
  21.         }
  22.  
  23.         RowLayout {
  24.             Layout.fillWidth: true
  25.             Layout.preferredHeight: 40
  26.        
  27.             Rectangle {
  28.                 Layout.preferredWidth: 40
  29.                 Layout.preferredHeight: parent.height
  30.                 color: "red"
  31.  
  32.                 MouseArea {
  33.                     anchors.fill: parent
  34.                 }
  35.             }
  36.  
  37.             Rectangle {
  38.                 Layout.preferredWidth: parent.width * 0.80
  39.                 Layout.preferredHeight: parent.height
  40.                 color: "blue"
  41.             }
  42.            
  43.             Rectangle {
  44.                 Layout.fillWidth: true
  45.                 Layout.preferredHeight: parent.height
  46.                 color: "green"
  47.             }
  48.         }
  49.  
  50.         RowLayout {
  51.             Layout.fillWidth: true
  52.             Layout.fillHeight: true
  53.  
  54.             Rectangle {
  55.                 width: parent.width
  56.                 height: parent.height
  57.                 color: "pink"
  58.             }
  59.         }
  60.     }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement