980 questions
1
vote
0
answers
54
views
How to remove white space between QTableView and QHeaderView?
Does anyone know how to remove this white space? This is my current stylesheet:
QTableView {
background-color: #EEEEEE;
}
QTableView::item {
background-color: transparent;
}
QHeaderView::...
1
vote
0
answers
45
views
MacOS Bus Error and app crash when using PyQt6
I've been hobby writing a little budget tool for myself over the last few months, and have finally gotten some ok functionality. Decided to polish it a bit and make it act more like a GUI app.
Running ...
1
vote
0
answers
129
views
Encountering qtpy.QtBindingsNotFoundError when running an EXE generated by Pyinstaller
Summary
I am generating an EXE for a Python project using Pyinstaller.
I am using Powershell on Windows 11 and a Python 3.11 in a Poetry virtual environment.
I keep encountering the following error ...
0
votes
0
answers
79
views
How to fix QtWebEngine ImportError on Linux?
I am making an editor using Python and PyQt6. I have the same code that works for Windows, but when I run the code on Arch Linux, I get this error when importing QWebEngine:
from PyQt6....
1
vote
0
answers
58
views
pqyt6 - How to insert word-wrap in svg content
I'm creating pyqt6 app where I can replace normal fonts/text with svg fonts(.svg files like a.svg, b.svg etc).
My issue is with word-wrap. In normal mode(svg mode is disabled) QTextEdit correctly ...
1
vote
0
answers
53
views
PyQt6 - How can I change the direction of the scale/ruler
I have this Ruler class
Right now the scale looks like the below image. I want the ticks to have their roots towards the view instead of having them outwards. The base of the scale should be inside.
I ...
0
votes
0
answers
63
views
PyQt6 QTextEdit won't expand as much as it should
I am trying to create a UI that resembles OpenAI's, where code and markdown snippets follow each other and markdown and the code are parsed/syntax highlighted accordingly. I've been using PyQt6 and my ...
0
votes
0
answers
44
views
Horizontal scroll on shift in PyQt
I have a PyQt6 Application in which I have multiple QTextEdits, which contain text that sometimes overflow the visible range of the lines. Using the combination of Shift+Mouse-Wheel, my goal was to ...
0
votes
0
answers
46
views
Moving from matplotlib to pyqtgraph: how to reuse PlotWidgets?
I have a large gui app based on matplotlib which is horribly slow (on windows) so I am trying to re-host it on pyqtgraph (which seems to be much faster).
I am facing the following problem: I need to ...
0
votes
0
answers
38
views
How to enable back windows animations if I disabled the default windows frame with the respective flag?
I disabled the window frame and made my own window frame, but it also removed all window animations when maximizing/minimizing or closing etc. How to enable them back without enabling the default ...
1
vote
1
answer
170
views
Is there any way to obtain a listing of enum names and values in a typedef for QFlags? [duplicate]
As such I (questioner) am no longer looking for an answer but I am not sure on what grounds to recommend closing. It could possibly be helpful to someone.
Here's an example of what I mean (based on ...
0
votes
1
answer
125
views
Installing pyqt6-tools fails with a MemoryError
I was able to install pyqt6, but installing pyqt6-tools fails with a MemoryError. One thing to note, memory usage for Python spikes up to 3GB.
Here is the output of running pip install pyqt6-tools:
...
0
votes
1
answer
58
views
Set a QApplication on top of the screen with reserved space (like a taskbar)
General overview
I try to set just a minimal taskbar (like Polybar or i3bar, or any task bar you know).
The constraint are the folowing ones:
It should have a dedicate space to avoid overlaping with ...
0
votes
0
answers
76
views
PyQt6 has incompatible architecture; using arch commands with pip ineffective
I'm working on a project that uses PyQt6 , but when I try to import it into my program, it throws and ImportError and says that it has 'incompatible architecture'. The full error message is:
...
3
votes
1
answer
93
views
Are Enums optional in PyQt6
I have two python programs running in the same virtual environment using PyQt6.5 on MacOS Sonoma 14.5 and python 3.11. Both execute just fine. One uses the updated enums for PyQt6 for QMessageBox as ...
1
vote
0
answers
62
views
Drawing a long cursor over a QPlainTextEdit
I'm trying to draw a long cursor in Qt.
I already have a function to edit many lines of a QPlainTextEdit at the same time (<-> alt edition in Notepad++), and my current goal is to display the ...
0
votes
0
answers
46
views
Permutate two rows inside QTableWidget [duplicate]
I have a simple QTableWidget with a unique relevant column (the other one still empty for the moment). And I try to permute two rows.
I’ve made this method to my table:
def permuteRows(self, row1=...
2
votes
1
answer
112
views
Problem nesting QT layouts when using if <QT layout> statement
For my application I created a Window class, I minimized my code as much as possible so that there would be nothing unrelated.
The code is below:
import sys
from PyQt6.QtWidgets import (QApplication, ...
0
votes
1
answer
76
views
keyPressEvent on a vispy scene embedded in pyqt
I have a vispy scene embedded in a pyqt frame on a pyqt app to display some plots. Now, i need a keypressevent on the whole app for some unrelated thing (a home-made implementation of vim command mode)...
0
votes
0
answers
54
views
About animating the scale of a QDialog
I'm looking for ways to animate the scale of a QDialog to create a smooth animated popup.
Qt widgets don't have a scale property that you can animate, so I tried using a QGraphicsView() and wrapped a ...
0
votes
1
answer
53
views
I need to render a Plotter object on QWidget
I am trying to render a Plotter object created by Seaborn.object.Bar() on Qwidget from PyQt6.
plot = (
so.Plot(result, x = 'XXX', y = 'XXX')
.add(so.Bar(color='lightblue'))
....
1
vote
1
answer
87
views
QMessageBox has clipped children widgets
I have a QMessageBox.question object that I use to confirm that the user wants to close the program. I also have a custom one that I use for showing errors. For whatever reason, since using PyQt6 they ...
0
votes
1
answer
64
views
PyQt6 WebEngine – Detecting username and password fields on a website
I am building a web browser with PyQt6 and its WebEngine framework, and would like to make a password manager that enters usernames and passwords directly into websites in the WebEnginePage being ...
0
votes
0
answers
59
views
Add Tab Button on PyQt6/PySide6 QTabWidget [duplicate]
I'm currently extending a program with a tab view. For this i need a button to add tabs, which i would like to have directly next to tabs, like in a web browser. I can't just add it as an extra tab, ...
0
votes
0
answers
40
views
Perform cleanup tasks from/in a child QWidget before it is destroyed/closed
Problem
I am trying to create a custom widget which can perform it's own cleanup tasks before it is fully destroyed, but triggered by the application closing. I want to do this because my QWidget ...