Questions about using PySide6, a Python Qt bindings project for Qt6.
Questions tagged [pyside6]
757 questions
4
votes
1 answer
Error: QQmlApplicationEngine failed to load component "Network problem"
I'm new to qml and python This is the code and error I get:
Error:
QQmlApplicationEngine failed to load component
c:%5CUsers%5Cpcmcb%5COneDrive%5CDesktop%5Capp%5Capp%5Cqml/main.qml: Network error
main.py:
mport sys
import os
from PySide6.QtGui…

Bobby
- 41
- 8
4
votes
1 answer
Is there a cleaner way for backend in PySide6 for QML?
Hello I am using Model class to supply items for lists and comboboxes. The problem is that I use the setContextProperty() function every time for each element. I'm looking for a solution where all elements(list and comboboxes) use the same…

Reactionic
- 182
- 1
- 2
- 12
4
votes
2 answers
PySide6.1 not compatible with matplotlib 3.4
When I only install PySide6, the GUI program works well, but once I have installed matplotlib with its dependency packages(including pyqt5), then the GUI program won't work and output the error message below
This application failed to start because…

Ricardo May
- 65
- 1
- 4
4
votes
0 answers
How to compile .ui file to python using pyside6-uic but with the snake_case and true_property activated
The new version of Qt for Python (PySide6) allows to use a new feature named true_property, this feature you can easily use when you build your UI manually from scratch, but If you are using Qt Designer and you want to convert .ui files to python…

Arthur
- 193
- 3
- 10
4
votes
1 answer
Failed to build graphics pipeline state in qt quick application
I have a qt quick pyside application .I had a question before,but now another proplem is there .Just a empty window appears and then in application window I see below message.Although I have another qt quick application that I written that in c++…

mohsen
- 1,763
- 3
- 17
- 55
4
votes
1 answer
PySide6: error while loading shared libraries: libQt6DesignerComponents.so.6: cannot open shared object file
I'm trying to run QT Designer from the terminal
pyside6-designer
but get the error message:
venv/lib/python3.8/site-packages/PySide6/designer: error while loading shared libraries: libQt6DesignerComponents.so.6: cannot open shared object file: No…

Jaco
- 1,564
- 2
- 9
- 33
3
votes
1 answer
How can I get the key without modifiers on keyPressEvent in Qt?
Consider this PySide 6 example:
from PySide6.QtCore import * # noqa
from PySide6.QtGui import * # noqa
from PySide6.QtWidgets import * # noqa
class TableWidget(QTableWidget):
def __init__(self):
super().__init__()
…

BPL
- 9,632
- 9
- 59
- 117
3
votes
1 answer
GUI freezing in python PySide6
I am developing a software as part of my work, as soon as I make a call to the API to fetch data the GUI freezes, at first I understood the problem and transferred the functions to threads, the problem is that once I used the join() function the app…

David_F
- 33
- 3
3
votes
0 answers
PyQt6/PySide6: window move doesn't work properly
I'm trying to create a window with a custom bar on top.
For this I am using the following bar code: (bar.py)
from PySide6.QtWidgets import QWidget, QLabel, QPushButton, QHBoxLayout
from PySide6.QtCore import Qt, QSize, QPointF
from PySide6.QtGui…
user18196171
3
votes
1 answer
true_property and snake_case breaking property-keyword widget constructors in PySide6
I'm encountering an issue trying to use true_property and/or snake_case in PySide6. Without either, I can construct widgets using a form like this:
text = QtWidgets.QLabel('Example', margin=10)
where I specify Qt properties as keyword arguments…

CrazyChucky
- 3,263
- 4
- 11
- 25
3
votes
0 answers
How do I correctly package PySide6 using cxfreeze?
I have written a fairly simple GUI application using Python 3.8.0 and PySide6 and I would like to package it for distribution. Based on the table here, I chose cxfreeze as it's compatiable with Qt6 and with Windows/Linux/Mac.
My application in…

jfowkes
- 1,495
- 9
- 17
3
votes
2 answers
Qt error: qt.qpa.fonts: Unable to open default EUDC font: "C:\\WINDOWS\\FONTS\\EUDC.TTE"
Every time I run a PySide2/6 app I get the following error printed in terminal:
qt.qpa.fonts: Unable to open default EUDC font: "C:\\WINDOWS\\FONTS\\EUDC.TTE"

Jaime02
- 299
- 7
- 21
3
votes
0 answers
How to install PySide6?
I am following the documentation in here
First installation issue (Solved):
It is suggested to install pyside6 in a virtual environment, so I follow each step.
python -m venv env
env\Scripts\activate.bat
pip install pyside6
However, I get the…

Pherdindy
- 1,168
- 7
- 23
- 52
3
votes
1 answer
unwanted empty rows in a proxy model
I have a question regarding Qt's model/view architecture.
I have implemented a class TestModel inheriting from QAbstractItemModel, with a custom method TestModel.addRevision(...) to insert new rows and TestModel.removeRevision(...) to remove rows.…

marc
- 264
- 1
- 2
- 17
3
votes
2 answers
Qt6 for Python (PySide6) on Windows 10: can't make QtQml and QtQuick work from QML
On my Windows 10 machine I'm trying few simple examples of new Qt6 and QML based example doesn't work for me.
I'm running Python 3.8.6 and a virtual env
python3 -m venv venv
.\venv\Scripts\Activate.ps1
The pyside6 installs without any warnings into…

Alexey Dolganov
- 31
- 1
- 5