qml

How to show Opencv camera feed in a Qml application?

How to show Opencv camera feed in a Qml application? Question: I’m trying to show opencv processed camera feed inside and Image object in Qml application. The feed page is a separate page loaded with a Loader object to the main page when a button is pressed, the feed page is inactive by default. Here …

Total answers: 2

QML self.emit to start function to open popup. Does not work

QML self.emit to start function to open popup. Does not work Question: So I have made a popup that works properly. but now I need the function to wait until the popup is filled in. So I started a while loop that loops until the if statement != "empty". But somehow the popup is not …

Total answers: 1

Use QEnum like a Python Enum

Use QEnum like a Python Enum Question: Let’s say I have a python enum: class UserState(Enum): OFFLINE = auto() ONLINE = auto() BUSY = auto() I can access the different options with UserState.ONLINE, UserState.OFFLINE or UserState.BUSY. If I wanted to make this a QEnum so I can use it in QML, I’d need to wrap …

Total answers: 2

Faced with the problem of updating progressbar in Qt in python

Faced with the problem of updating progressbar in Qt in python Question: Write player, and emerged question, when I launching song, I want to progressbar was updated in the time when goes music, made cycle, threw his in thread, values on renewal are transmitted through signal in qml, but in than the problem, these values …

Total answers: 2

Connect QML signal to PySide2 slot

Connect QML signal to PySide2 slot Question: I have some expirience using Qt/C++ and now I want to switch to PySide2 + QML. I want to connect ui signals, such as clicking a button, to python slot I have seen many examples, but they all differ, i guess PyQt/PySide is changing quickly now Can you …

Total answers: 2

Unable to stream frames from camera to QML

Unable to stream frames from camera to QML Question: I am using PyQT5. I want to send frames from Opencv to QML using QQuickPaintedItem. I wrote a sample implementation here. I cant seem to find why the paint event is called only once, only when the application is loading. It is painting only one frame …

Total answers: 2

QML ListView sections from the code

QML ListView sections from the code Question: I am unable to implement listview with sections. I’ve successfully repeated an example from Qt documentation but there is ListModel used which works okay, but not a var. How it works with example: ListView { width: 100 height: 100 id: listview model: ListModel { id: animalsModel ListElement { …

Total answers: 2

Does Python go well with QML (Qt-Quick)?

Does Python go well with QML (Qt-Quick)? Question: I am a beginner in Qt-Quick. I am not aware of Qt which is a basis for QML. And also I’m not familiar with C++ which is again main supported language for both Qt and QML. I’m aware JS can do a lot of logic in QML …

Total answers: 3