Questions about using PySide6, a Python Qt bindings project for Qt6.
Questions tagged [pyside6]
757 questions
2
votes
0 answers
Click on the QChartView to draw crosshairs (PySide6)
I want to display crosshairs on a scatterplot created by the QChart at the position where I click the mouse.
The following topic on how to display crosshairs on a graph was helpful.
How to add a crosshair to a pyqt5 graph
This works as expected at…

Fuhito Suguri
- 21
- 2
2
votes
1 answer
Multi-window QT app without taskbar entry
I'm developing a note application with PySide6 on Ubuntu 22.04. The note windows should be like usual windows, but they should have no taskbar entry.
I tried already multiple approaches, including the answers from Hide PyQt app from taskbar. It…

Marph
- 176
- 4
- 15
2
votes
3 answers
Conda gives InvalidArchiveError for qt6-main - seeking backwards is not allowed
I'm trying to install PySide6, which requires qt6-main, using Conda. During the install using the command
conda install qt6-main -c conda-forge
I get the error:
InvalidArchiveError('Error with archive…

LimaKilo
- 196
- 9
2
votes
2 answers
pyqtgraph plot not filling whole widget (from qt designer)
I'm trying to embed a pyqtgraph plot in my PySide6 app but the plot is not filling the whole widget:
I want the whole PlotWidget to be filled. The PlotWidget got created with QT-Designer.
The App:
import sys
from PySide6.QtUiTools import…

jamesB
- 291
- 2
- 12
2
votes
1 answer
Error when running py2app init_import_site: Failed to import the site module
I am currently dabbling in Python. I have now created a mini project for testing. For this I have installed PySide6 and built a none window:
from PySide6.QtWidgets import QApplication, QMainWindow
from widgets.main import Ui_frmMain
class…

Mario Fritsche
- 21
- 2
2
votes
0 answers
PySide: segfault when constructing QImage with a cleanupFunction
Trying to construct a QImage with byte data along with a cleanupFunction, am I doing something wrong here?
Segfault code:
>>> from PySide6 import QtGui as qtg
>>> qtg.QImage(b'', 10, 10, qtg.QImage.Format.Format_ARGB32, lambda: print(x))
[1] …

Neat
- 61
- 1
- 5
2
votes
3 answers
Qt: getting a thumbnail for a video
Is there a better way to get a thumbnail for a video? OS is primarily Linux, but hopefully there's a cross platform way to do it.
This is what I have right now:
from PySide6 import QtMultimedia as qtm
from PySide6 import QtMultimediaWidgets as…

Neat
- 61
- 1
- 5
2
votes
1 answer
QTextBrowser shows markdown on Mac but not on Windows
I'm building an app with Qt (pyside6) and packaging it with Pyinstaller. Everything works great on mac when running it through pycharm or when packaged, but the QTextBrowser doesn't render the sourced markdown file when it's running on my windows 10…

Moony
- 37
- 4
2
votes
2 answers
Worker thread does not respond to slot calls from main thread
For my project based on Python and Qt I wanted to move expensive calculations and functions providing server/client functions into separate threads, to unfreeze my GUI. While leaving them running, I still want them to check periodically if there is…

arc_lupus
- 3,942
- 5
- 45
- 81
2
votes
1 answer
Efficient way to switch pyside6 qml screens
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…

lakkadaayush
- 25
- 6
2
votes
1 answer
PySide6: AlignCenter not working for QAbstractTableModel's TextAlignmentRole
The data in the table cells is not centering. It used to before but now all of a sudden it doesn't anymore, and I don't know why. I have not changed anything in the model class.
I have code similar to this MRE:
from PySide6 import QtWidgets as…

オパラ
- 317
- 2
- 10
2
votes
1 answer
PySide6 QThread still freezing main GUI
I am currently trying to implement some threading functionality in my PySide6 GUI application. I followed a tutorial to try to get started (link is here), and I cannot seem to get it to work. Although that tutorial uses PyQt not PySide, the classes…

ccortez
- 23
- 3
2
votes
1 answer
How do I reference a button that I created in Qt Designer?
I created a button in the QT6 creator and named it scanButton. The button shows up when I run the code. However, I'm running into an issue once I want to bind it to a function. I finally got a result but it shows a new button in the top left and it…

toad
- 23
- 5
2
votes
1 answer
PySide6: How to remove spacing between buttons in QHBoxLayout?
How can I remove the spacing between buttons after fixing their size?
A space is added whenever I set the button's size.
I tried setSpacing but it does not work. Can this be done by sizePolicy or something else?
Here is my code:
from PySide6.QtCore…

Spark Drago
- 55
- 6
2
votes
1 answer
Problem with QTimer() function in PySide6 the function doesn't loop
I have this PySide app and I want to run the function pp every 1 second, but when I run the app it only ran for 1 time.
import sys
from PySide6.QtWidgets import QMainWindow, QApplication
from PySide6 import QTimer
class MainWindow(QMainWindow):
…

Hosam Hashem
- 97
- 9