SHARE
TWEET

Untitled

a guest Jan 19th, 2020 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top