xiaose

Issue with import in QtQuick 2.0

Aug 3rd, 2014
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.17 KB | None | 0 0
  1. import QmlProject 1.1
  2.  
  3. Project {
  4.     mainFile: "frontend.qml"
  5.    
  6.     QmlFiles {
  7.         directory: "."
  8.     }
  9.     JavaScriptFiles {
  10.         directory: "."
  11.     }
  12.     ImageFiles {
  13.         directory: "."
  14.     }
  15. }
  16.  
  17. // ---------------------
  18.  
  19. import QtQuick 2.0
  20.  
  21. Rectangle {
  22.     id: container
  23.     width: 1080
  24.     height: 700
  25.  
  26.     state: "selectSite"
  27.  
  28.     states: [
  29.         State {
  30.             name: "selectSite"
  31.         }
  32.     ]
  33.  
  34.     gradient: Gradient {
  35.         GradientStop {
  36.             position: 0
  37.             color: "#38466b"
  38.         }
  39.  
  40.         GradientStop {
  41.             position: 1
  42.             color: "#afbad7"
  43.         }
  44.     }
  45.  
  46.     btnSite { id:tab1 }
  47.  
  48. }
  49.  
  50. // ---------------------
  51.  
  52. import QtQuick 2.0
  53.  
  54. Rectangle {
  55.     id: container
  56.     width: 200
  57.     height: 45
  58.     color: "#201616"
  59.  
  60.     Text {
  61.         id: text1
  62.         width: 24
  63.         height: 16
  64.         color: "#ead9d9"
  65.         text: qsTr("Text")
  66.         anchors.horizontalCenter: parent.horizontalCenter
  67.         anchors.verticalCenter: parent.verticalCenter
  68.         horizontalAlignment: Text.AlignHCenter
  69.         font.pixelSize: 14
  70.     }
  71. }
  72.  
  73. // ---------------------
Advertisement
Add Comment
Please, Sign In to add comment