pyqt

QAxWidget glitches when resizing GUI window

QAxWidget glitches when resizing GUI window Question: I am currently exploring the possibilities of displaying and working with PowerPoint presentations in a GUI using PyQt5/PyQt6 and Python. For that I found the most promising solution to be using a QAxWidget. Loading and displaying the pptx-file works fine, but unfortunately I noticed glitches when resizing the …

Total answers: 1

How a QHBoxLayout could remove itself?

How a QHBoxLayout could remove itself? Question: I have a code that makes some QHBoxLayouts with some elements in them. I want to remove each Row class (QHBoxLayouts object) when clicking on their own remove button. Here is the code for testing it from sys import exit, argv from PyQt6.QtWidgets import QApplication, QWidget, QVBoxLayout, QHBoxLayout, …

Total answers: 1

Why do QGridLayout Widgets move around when adding new ones?

Why do QGridLayout Widgets move around when adding new ones? Question: I can’t seem to wrap my head around how they work. The the best for placing multiple widgets seems to be QGridLayout but when I add something into a specific row/column and later decide to add somthing into another row/column everything shifts and it’s …

Total answers: 1

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

I keep getting DirectShowPlayerService::doRender: Unknown error 0x80040266. in PyQt5

I keep getting DirectShowPlayerService::doRender: Unknown error 0x80040266. in PyQt5 Question: Is there a way to be able to play my mp3 (which contains Meta Data) file using QMediaPlayer? I tried using 2 files (one with id3 tags and one without) the one without tags worked while the one with id3 tags didn’t and gave me …

Total answers: 1

PyQt threading loop on start

PyQt threading loop on start Question: I have been trying to get threading going with PyQt6 without much luck. I have explored multiple solutions, followed some tutorials and videos as well as looked at various questions previously asked by other users. Still, I do not seem to find a solution to make my code work. …

Total answers: 1

Change background of model index for QAbstractTableModel in PySide6

Change background of model index for QAbstractTableModel in PySide6 Question: I would like to change the background color of specific index on my table, but only after a specific task is completed. I know that I can use the Background role to change the color in my Table model, but I want to change the …

Total answers: 1

Make PyQt syntax highlighting work when loading from .ui file

Make PyQt syntax highlighting work when loading from .ui file Question: If elements of a PyQt/PySide GUI are defined programmatically, then any IDE can easily understand what they are, do syntax highlighting, show suggested methods etc. For instance, it may look like this in VS Code: However, if the GUI is not defined programmatically, but …

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