helloWorldQt
import QtQuick 1.0
Text{
text:"Hello world"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
font.bold: true
font.pointSize: 13
width:220
height:30
}
import sys
from PyQt4.QtGui import QApplication
from PyQt4.QtDeclarative import QDeclarativeView
from PyQt4.QtCore import QUrl
app = QApplication(sys.argv)
view = QDeclarativeView()
view.setSource(QUrl('hello.qml'))
view.show()
view.setWindowTitle("Hello World")
app.exec_()