SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import QtQuick 2.0
  2. import QtQuick.Controls 2.2
  3.  
  4. ApplicationWindow {
  5.     id: window
  6.     title: "Stack"
  7.     visible: true
  8.     width: 300
  9.     CheckBox {
  10.  
  11.     }
  12.  
  13. }
  14.      
  15. import QtQuick 2.0
  16. import QtQuick.Controls 2.2
  17.  
  18. ApplicationWindow {
  19.     id: window
  20.     title: "Stack"
  21.     visible: true
  22.     width: 300
  23.     CheckBox {
  24.         id: control
  25.         indicator: Rectangle {
  26.             implicitWidth: 26
  27.             implicitHeight: 26
  28.             x: control.leftPadding
  29.             y: parent.height / 2 - height / 2
  30.             radius: 3
  31.             border.color: control.down ? "#17a81a" : "#21be2b"
  32.  
  33.             Text {
  34.                 width: 14
  35.                 height: 14
  36.                 x: 1
  37.                 y: -2
  38.                 text: "✔"
  39.                 font.pointSize: 18
  40.                 color: control.down ? "#17a81a" : "#21be2b"
  41.                 visible: control.checked
  42.             }
  43.         }
  44.     }
  45.  
  46. }
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