qt

Qt QProgressBar not updating regularly when text is not visible

Qt QProgressBar not updating regularly when text is not visible Question: I have a QProgressBar that is set to not display text. It appears that this causes the progress bar to not update regularly, but only after some chunks (roughly 5-10%). The following minimum Python example shows a window with two progress bars which get …

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

PySide6 – high datarate from DLL to QTableWidget

PySide6 – high datarate from DLL to QTableWidget Question: I have a python (3.11) project with PySide6. Application connects to DLL for CAN communication with other nodes. As part of configuration, approx 50-70 CAN messages are sent in short timeframe (but I added delays up to 50ms per message) and still see data loss. A …

Total answers: 1

How to change alignment of PyQtGraph legend?

How to change alignment of PyQtGraph legend? Question: I am trying to make a good-looking graph inside my interface and due to this, the legend has to be on a right side of the widget. Is it possible to do this? As a default, the legend appears sticking to the left axis and only way …

Total answers: 1

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

Python Qt Creator new project base class QMainWindow not showing dynamic form.ui

Python Qt Creator new project base class QMainWindow not showing dynamic form.ui Question: I’ve installed Qt Creator v9.0.1 on Ubuntu 22.04 / Windows 10 and try to create a new project which shows an empty frame and not the loaded form.ui: Screenshot Screencapture Testcase: File | New Project: Application (Qt for Python) | Window UI …

Total answers: 1

Get the len of QLineEdit in PyQt5

Get the len of QLineEdit in PyQt5 Question: I am writing a project that comes and takes the file address(path) from the user. And when the user clicks on the next button, she enters the loading page. I encountered a problem here that when the user does not specify the address and path of the …

Total answers: 1