qml

Emit python list in Signal to Qml ui

Emit python list in Signal to Qml ui Question: I am trying to communicate a python script to a qml ui using signal/slot and, while it works for some types (str) it seems to not be working when I try emitting a list: Python: from PySide6.QtCore import QObject, Signal, Slot from PySide6.QtGui import QGuiApplication from …

Total answers: 1

Qml, Reference error <signalName> is not defined when signal defined

Qml, Reference error <signalName> is not defined when signal defined Question: I have a very simple qml+python app to play and test signal/slot communication. All works fine so far, but when I run the app, a ReferenceError is reported on the QML side. However, all works fine, it is so simple code: QML: import QtQuick …

Total answers: 1

Qml QtMultimedia Video + Qml ShaderEffect incompatibility

Qml QtMultimedia Video + Qml ShaderEffect incompatibility Question: I have a problem with applying a shaderEffect on qml video. When I apply ShaderEffect to the rectangle containing a video, I observe stuttering stuttering effect on Video representation in ShaderEffect. Moreover, my program shuts down some time afterwards. Are there ways to apply shader effect to …

Total answers: 2

QT QML make invisible button in other Rectangle

QT QML make invisible button in other Rectangle Question: I want to hide the button when navigating from the first page to the second page, But when I add this line button_1.visible: false in the code, it doesn’t work. main.qml: import QtQuick 2.15 import QtMultimedia 5.0 import QtQuick.Controls 2.15 import QtQuick.Dialogs 1.0 import QtQuick.Layouts 1.2 …

Total answers: 2

Can't bind a Python function to a QML button

Can't bind a Python function to a QML button Question: I’ve been struggling with binding QT Quick Application front-end and back-end. Here’s my code. For a clear and short example the function prints "Hello from back-end" as an output without getting any arguments. main.py from pathlib import Path from PySide6.QtGui import QGuiApplication from PySide6.QtQml import …

Total answers: 1

QML – Switch button is controlled by spacebar – why?

QML – Switch button is controlled by spacebar – why? Question: In my Pyside/QML application I want to use spacebar onPressed event for my purpose – it works. When add to my app Switch button, then the spacebar button controls the Switch instead of calling my onPressed event. Is there any way to disable the …

Total answers: 2

Qt Creator Design mode disabled for Qt Quick / PySide6 project

Qt Creator Design mode disabled for Qt Quick / PySide6 project Question: In newly installed Qt Creator 8.0.1, the Design Mode is disabled. I can only code in QML in Edit Mode. I can easily reproduce the problem by just creating a new Python Qt Quick Project as shown below. The Design Button on the …

Total answers: 1

How to emit Signal from nested QML page to python

How to emit Signal from nested QML page to python Question: in my QML/python app I can emit signal from main.qml to the python code. But now In main.qml I added StackLayout for loading another page1.qml. In that page1.qml is button, now I want to emit signal from this button to the python. I use …

Total answers: 2

Plot data by Qt Charts ( qml – QT Creator)

Plot data by Qt Charts ( qml – QT Creator) Question: I want to plot data in PySide/qml application (using QT Creator). I found a nice Qt Charts module url link but in components in Qt Creator can not be found. So I installed it manually like that: pip install PyQt6-Charts PyQt6 then I tried …

Total answers: 1

Efficient way to switch pyside6 qml screens

Efficient way to switch pyside6 qml screens Question: I am working on a project where I have to make a multi-screen/window application. I am using QML and PySide6 for this purpose. The flow of my applications is like below: login screen -> search screen (search for certain items) -> test screen (performs some operations) -> …

Total answers: 1