Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.48 KB | None | 0 0
  1. import QtQuick 2.13
  2. import QtQuick.Window 2.13
  3. import QtQuick.Controls 2.13
  4. import QtQuick.Layouts 1.13
  5.  
  6. Window {
  7.   width: 620
  8.   height: 380
  9.   visible: true
  10.  
  11.   RowLayout {
  12.     Loader {
  13.       sourceComponent: first
  14.       Layout.fillWidth: true
  15.     }
  16.  
  17.     Loader {
  18.       sourceComponent: the_same
  19.       Layout.fillWidth: true
  20.     }
  21.   }
  22.  
  23.   Component {
  24.     id: first
  25.     Label { text: "first" }
  26.   }
  27.  
  28.   Component {
  29.     id: the_same
  30.     Label { text: first.text }
  31.   }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement