980 questions
0
votes
0
answers
161
views
PyQt6 - allow streching for a particular widget [duplicate]
I'm a newbie to PyQt6. My problem is, I would like to have a window with different tabs and in the first tab "tab_1" the space is divided into 2 columns. The 1st column contains some options ...
1
vote
1
answer
614
views
Unable to alter the text color within a QTableWidget
I wrote a complex program that utilizes a PyQt6 table. I encountered an issue where I was unable to alter the font color within the table. To troubleshoot, I created a smaller program (see below) that ...
0
votes
1
answer
511
views
How to Position Icon Above Text in QPushButton in PyQt6
I have a QPushButton with an Icon. By default the Icon is placed to the left of the button text like this:
Using a QToolButton I can achieve the desired behavior with: button.setToolButtonStyle(Qt....
0
votes
1
answer
121
views
GUI closing unexpectedly
I'm using PyQT6, PyCharm and Python 3.11.
Very briefly, I'm trying to convert (mentally) from VBA to Python.
I made a GUI in pyQT6, let's call it test.ui. It has a number of buttons and a table. I ...
0
votes
1
answer
320
views
PyQt6 - handle events on QGraphicsItem
I'm fairly new to PyQt6, and I'm interested in event handling in QGraphicsItems.
I have QGraphicsItem(s), drawn on a QGraphicsScene and a view with a QGraphicsView. I'm mainly drawing two types of ...
0
votes
0
answers
54
views
How to Update multiple widgets without triggering a Changed signal
What would be the appropriate way to update binded-fields without triggering a chain of Changed events?
Considering the following scenario:
Changing StartDate should update Months
Changing EndDate ...
1
vote
3
answers
3k
views
PyQt6 6.7.0 - How to fix error: No QtMultimedia backends found
Problem on Windows 10 and Windows 11 using Anaconda.
Here is the full error message for PyQt6=6.7.0:
No QtMultimedia backends found. Only QMediaDevices, QAudioDevice, QSoundEffect, QAudioSink, and ...
1
vote
1
answer
722
views
Bold QLabel font with PyQt6 from ui file
I have upgraded from PyQt5 to PyQt6 (Qt version: 6.7.1) and noticed a change how bold fonts are rendered in QLabels.
I typically load a ui file generated from Qt Designer directly with:
from PyQt6 ...
1
vote
1
answer
691
views
How to do content scaling in PyQt6?
So I build a desktop application using PyQt6 and I want the desktop application content to resize with our screen size. For example I have this layout which has 770 x 550 ratio and I want this user ...
0
votes
1
answer
159
views
How to select text in QtPdf View (QML)
I am developing an application in Qt with Quick and some QML.
I need to interact with the contents of a pdf file opened inside of QPdfMultipageView. More specifically, I need the text to be selectable ...
0
votes
0
answers
50
views
How to view outlook email images in Python tkinter screen
I have an issue with embedded email images. Their borders come into the tkinter frame the right size and position as they do in Outlook, but only as broken links, and no image. Some images come in if ...
1
vote
0
answers
1k
views
How to set aplication icon in PyQt6?
I have a small application on Python with PyQt6.
Trying to set an icon with
app.setWindowIcon(QIcon('ui\app.ico'))
without any success. It sets window icon but the taskbar icon remains unchanged.
I ...
0
votes
0
answers
14
views
PyQt6 - Elements with QVBoxLayout not scaling well after expanding the window [duplicate]
I have the following method which establishes a QVBoxLayout with several configuration widgets:
def ConfigureNewGraph(self):
confWnd = QWidget()
confWndLayout = QVBoxLayout()
...
0
votes
0
answers
606
views
PyQt6 designer won't install. Error: /usr/lib/x86_64-linux-gnu/libQt6Core.so.6: version `Qt_6.4' not found
I have attempted to install PyQt6 and its pyqt6 designer and I can't resolve the following error message when using the following command,
pyqt6-tools designer
It results in this error message,
~/...
0
votes
0
answers
457
views
How to print pdf file using QPrinter?
I can't print my pdf file using QPrinter, I figured it needs to be set to html to print it and now I'm getting this error on terminal:
QPrintDialog: Cannot be used on non-native printers.
And does ...
2
votes
1
answer
231
views
PyQt6 - How can I expand a field in a QFormLayout
I would like to expand the combobox field in a form layout, but I just can't seem to find the right combination of spells to achieve this. Specific documentation on practical layout management seems a ...
0
votes
1
answer
426
views
PyQt6 Delegate class to show combo boxes in tableView cells, doesn't update model on selection. It has to be clicked again
I have revised this post in line with comments gratefully received.
I attach a simplified program to demonstrate the problem, and along the way to developing it I found the answer to my initial ...
0
votes
1
answer
151
views
PyQt6 application auto-closes unexpectedly without leaving any error message
I'm developing a PyQt6 application that deals with real-time acquisition of photon intensity tracking over time and plots it in real-time, before calling a pyo3 function for post-processing on the ...
0
votes
0
answers
266
views
How to dynamically change size of grid when adding a new row in PySide6 or PyQt6? [duplicate]
I have a method called addNewRow which will add a new LineEdit widget into the gridLayoutWidget. I'm trying to change the size of my grid to keep all the widgets from getting squished, but all the ...
1
vote
1
answer
8k
views
Error while installing pyqt-tools on Python 3.12.3
I attempted to install PyQt5 and PyQt6. In both cases, PyQt itself was installed normally, but PyQt-Tools (5 or 6) gave the error "metadata-generation-failed". My Python version is 3.12.3, ...
-1
votes
1
answer
356
views
PyQt6 Application Crashes When Window is Moved or Resized During Video Capture with opencv
I am developing an application using PyQt6 that captures live video from a decklink using OpenCV and displays it on a QWidget. The application functions well under normal circumstances. However, I ...
0
votes
1
answer
127
views
plot a graph using PyQt5
I want to plot 5 graphs on a single canvas. If i click the next button ,it should display the next graph ,and all graphs should be dynamic using PyQt5
class Window(QWidget):
def __init__(self):
...
0
votes
0
answers
695
views
Controlling Title Bar Color in PySide 6.7 Based on Windows Theme
I've recently noticed a change in behavior regarding the title bar appearance in PySide6. In version 6.6, the title bar of the main window always appeared white, regardless of whether the Windows ...
0
votes
1
answer
112
views
Key code results inconsistent when typing on the numpad
I decided to make a primitive program to intercept hotkeys and output them to the screen to create tutorial videos. Currently, everything works as I wanted, except for Numpad numbers and Numpad math ...
0
votes
0
answers
29
views
PyQt6: QMediaPlayer producing no sound, or an error [duplicate]
class AudioWidget(QWidget):
def __init__(self, file_path, parent=None):
super().__init__(parent)
self.file_path = file_path
self.setFixedSize(250, 50)
self....