Advertisement
Guest User

Untitled

a guest
Aug 7th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.88 KB | None | 0 0
  1. import QtQuick 2.9
  2. import QtQuick.Window 2.2
  3. import QtQuick.Controls 2.2
  4. import QtQuick.Controls.Styles 1.4
  5. import QtGraphicalEffects 1.0
  6. import QtQuick.Dialogs 1.2
  7. import QtQuick.Layouts 1.3
  8. import QtMultimedia 5.9
  9.  
  10. Window{
  11.     id: window
  12.     visible: true
  13.     width: 1250
  14.     height:686
  15.     color: "#36393f"
  16.     title: qsTr("Hello World")
  17.  
  18.     Rectangle {
  19.         id: rectangle
  20.         x: 170
  21.         y: 224
  22.         width: 862
  23.         height: 65
  24.         color: "#ffffff"
  25.  
  26.         LinearGradient {
  27.             anchors.fill: parent
  28.             start: Qt.point(300, 0)
  29.             end: Qt.point(0, 0)
  30.             gradient: Gradient {
  31.                 GradientStop { position: 0.0; color: "red" }
  32.                         GradientStop { position: 0.5; color: "yellow" }
  33.                         GradientStop { position: 1.0; color: "green" }
  34.             }
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement