Advertisement
Guest User

Untitled

a guest
Dec 20th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.52 KB | None | 0 0
  1. import QtQml 2.14
  2. import QtQuick 2.14
  3. import QtQuick.Layouts 1.14
  4.  
  5. import QtQuick.Controls 2.14
  6. import QtQuick.Controls.Material 2.14
  7. import QtQuick.Window 2.14
  8.  
  9. import Components 1.0
  10. import Sections 1.0
  11.  
  12. ApplicationWindow {
  13.     id: main
  14.     visible: true
  15.     width: 1024
  16.     height: 800
  17.  
  18.     flags: Qt.FramelessWindowHint | Qt.Window
  19.  
  20.     Material.theme: Material.Dark
  21.     Material.primary: backend_style.primary
  22.     Material.accent: backend_style.accent
  23.  
  24.     header: ToolBar {
  25.         Item{
  26.             height: 46
  27.             anchors.fill: parent
  28.  
  29.             MouseArea {
  30.                 ...
  31.             }
  32.  
  33.             Label {
  34.                 ...
  35.             }
  36.  
  37.             RowLayout {
  38.                 ...
  39.             }
  40.  
  41.         }
  42.     }
  43.  
  44.     footer: ToolBar {
  45.         ...
  46.     }
  47.  
  48.     Page {
  49.         id:view
  50.         title: backend_style.name
  51.         padding: 10
  52.         anchors.fill: parent
  53.  
  54.         ColumnLayout {
  55.             anchors.fill: parent
  56.  
  57.             RowLayout {
  58.                 Layout.maximumHeight: 300
  59.  
  60.                 Information {
  61.                     id: information
  62.                     Layout.preferredWidth: parent.width * 0.5
  63.                     Layout.fillHeight: true
  64.                 }
  65.  
  66.                 Devices {
  67.                     id:devices
  68.                     Layout.fillHeight: true
  69.                     Layout.fillWidth: true
  70.                 }
  71.             }
  72.  
  73.             RowLayout {
  74.                ...                
  75.             }
  76.         }
  77.     }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement