This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtCore import Qt | |
from PyQt5.QtCore import QAbstractListModel | |
from PyQt5.QtCore import pyqtSlot | |
from PyQt5.QtCore import QVariant | |
from PyQt5.QtGui import QImage | |
from PyQt5.QtQml import QQmlApplicationEngine | |
from PyQt5.QtQuick import QQuickImageProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtCore import QObject, pyqtSlot | |
from PyQt5.QtCore import QVariant | |
from PyQt5.QtQml import QQmlApplicationEngine | |
from PyQt5.QtWidgets import QApplication | |
class Context(QObject): | |
@pyqtSlot(QVariant) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.5 | |
Rectangle { | |
width: 800 | |
height: 600 | |
color: "#eee" | |
property var obj |