Skip to content

Instantly share code, notes, and snippets.

@renatooliveira
Last active December 26, 2015 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save renatooliveira/7100508 to your computer and use it in GitHub Desktop.
Save renatooliveira/7100508 to your computer and use it in GitHub Desktop.
#coding: utf-8
import sys
from PySide import QtGui, QtCore
from PySide.QtDeclarative import QDeclarativeView
app = QtGui.QApplication(sys.argv)
view = QDeclarativeView()
url = QtCore.QUrl("view.qml")
view.setSource(url)
view.show()
sys.exit(app.exec_())
import QtQuick 1.0
Rectangle {
width: 1024
height: 768
Image {
source: "images/mtsis_tela_balanca_1024.png"
fillMode: Image.PreserveAspectFit
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment