Qt6 bindings for Python programming language. This allows programmers to make Qt6 graphical user interfaces using Python syntax.
Questions tagged [pyqt6]
739 questions
2
votes
1 answer
Migrating to Qt6/PyQt6: what are all the deprecated short-form names in Qt5?
I'm trying to migrate a codebase from PyQt5 to PyQt6. I read in this article (see https://www.pythonguis.com/faq/pyqt5-vs-pyqt6/) that all enum members must be named using their fully qualified names. The article gives this example:
# PyQt5
widget =…

K.Mulier
- 8,069
- 15
- 79
- 141
2
votes
1 answer
Is there a better way to create a file browser with PyQt6?
I'm creating a file browser with PyQt6. This is what I'm thinking of doing right now:
from PyQt6 import QtWidgets as qtw
from PyQt6 import QtGui as qtg
class FileBrowserWidget(qtw.QScrollArea):
def __init__(self, *args, **kwargs):
…

オパラ
- 317
- 2
- 10
2
votes
1 answer
PyQt6 Successfully Installs but cannot be imported
I donwloaded PyQt6 using pip install pyqt6 and it had a bunch of errors so I uninstalled it and reinstalled it with pip install pyqt6 --user and the errors dissappeared. problem is trying to use it in VSCODe or any other ide doesn't work. When i…

Jerome B
- 21
- 1
- 2
2
votes
0 answers
PyQt6 Installation failed on building dependencies
I am trying to install PyQt6 with pip. But it could not succeed.I am using python 3.9.0 32 bit in Windows 8.1.
I tried PyQt5 installation ,it works fine.
I think there is something error with building dependencies and some metadata generation…

Hacker6914
- 247
- 1
- 9
2
votes
2 answers
PyQt6: How to set allocation limit in QImageReader?
I'm updating an application from PyQt5 to PyQt6. The application uses very large image files. I've updated the code to work with PyQt6, however, when I run the Python script I now get an error:
QImageIOHandler: Rejecting image as it exceeds the…

Chaz Hollywood
- 23
- 3
2
votes
0 answers
PYQT6 installation on Windows 7 32-bit
This is the command line that I used to install
'(venv) C:\Windows\System32>pip install pyqt6'
Collecting pyqt6
Using cached PyQt6-6.2.2.tar.gz (1.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing…

hamza chenni
- 146
- 2
- 18
2
votes
0 answers
Color overlay an image in QML (Qt6)
In QML for Qt5 I could use ColorOverlay to apply a color to an image.
But in Qt6, it no longer exists.
What is the best way to color an image in QML for Qt6?

Aaron
- 759
- 1
- 7
- 15
2
votes
1 answer
PyQt6 / finplot - Compatability Issue? (problem isolated to small runnable code)
My head is spinning from trying to get finplot to create an embedded graph for days with no luck. I decided to restart small.
The code that I included works as-is. However, if I change the import to PyQt6 from PyQt5, it stops working.
The…

sduffy89
- 97
- 7
2
votes
1 answer
Setting Transformation Point On Scaling QGraphicsItem
I am having an issue here.
In the given code, The animation and transformations are working perfectly. However, I want the set the transformation point.
According to me, I have to set .setTransformationOriginPoint(item.boundingRect().center()…

BladeOfLightX
- 504
- 4
- 17
2
votes
1 answer
pyqt6 QThread, threading.Lock() equivalent?
lst = [1, 2, 3, 4, 5, 6, 7, 8, 9]
class Thread(QRunnable):
def __init__(self):
super(Thread, self).__init__()
self.mutex = QMutex()
def run(self):
self.mutex.lock()
lst.pop(0)
print(str(lst))
…

Larry
- 117
- 2
- 13
2
votes
1 answer
QSqlRelationalDelegate displays foreign_key - id of the related record instead of name/value from Combobox
I am trying to add new rows to QSqlRelationalModel which is represented in QTableView.
I have set proper QSqlRelationalDelegate and proper QSqlRelations in the model. Displaying existing data from the database works fine. Columns with related data…

Muslimbek Abduganiev
- 828
- 7
- 21
2
votes
1 answer
how to set background-image in pyqt6 without qrc system
I have a question about the resource system in PyQt6 and PySide6.
firstly why PySide6 still supports the qrc system and PyQt6 does not.
secondly how to use an image as a background for a widget in PyQt6, I saw the notion of addSearchPath(), and…

Ay Men
- 90
- 7
2
votes
1 answer
How to use pyqtgraph and QSerialPort to create a real-time graph?
I am still a little new to Qt and python in general so I was wondering if I could get a little help with a project I am working on. I want to create a real-time graph with pyqtgraph that plots the data it receives through an RS232 connection using…

Gillian Grace
- 31
- 7
2
votes
0 answers
mmdevice audio output error: cannot initialize COM (error 0x80010106)
I was trying to make a audio player using Pafy, vlc, and PyQt6.
When I ran the code below, it worked perfect.
import pafy,vlc
url="https://www.youtube.com/watch?v=6Duo89XuYIM&list=RDMMIoCoIxkGkVw&index=20"
video=pafy.new(url)
best =…

Adi_Hsiao_0410
- 111
- 2
- 9
2
votes
2 answers
QMouseEvent' object has no attribute 'pos'
I'm having some problems here with PyQT6 while i try to move a image label trought the screen.
I'm trying to move a label that is in a Scrollabel Area to a frame, and i get the following error: "PyQT6: 'QMouseEvent' object has no attribute 'pos'…

Diego Baggio
- 39
- 2
- 10