Experimentation with QML. Plan to revert to a non-QML setup for now.
This commit is contained in:
parent
f209dc1d87
commit
fff98a41df
|
@ -1,9 +1,10 @@
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from PySide.QtCore import *
|
from PySide.QtCore import QUrl
|
||||||
from PySide.QtGui import *
|
from PySide.QtGui import QApplication
|
||||||
from PySide.QtDeclarative import QDeclarativeView
|
from PySide.QtDeclarative import QDeclarativeView
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# Create app
|
# Create app
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 200
|
width: 800
|
||||||
height: 200
|
height: 600
|
||||||
color: "red"
|
color: "red"
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "justCheckers"
|
text: ""
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue