981 questions
Advice
0
votes
2
replies
67
views
Building Qt6 with proprietary codecs for QtWebEngine
If you're a hobbyist programmer like me, perhaps you have had need to build Qt6 from source so that you can include the proprietary codecs needed to play audio and video from web pages loaded through ...
1
vote
1
answer
87
views
My custom label's text is uneven when rotated
I've created a custom qlabel using pyqt, however the text is slightly uneven when rotated. I've attached a picture of this vs an unrotated label. I've tried fixing it with setRenderHint Antialiasing, ...
1
vote
0
answers
60
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::...
3
votes
1
answer
85
views
pyQt - Trying to draw B-Spline curve with mouse
I am trying to have a Pen Tool in my pyqt6 application. I am trying to make it how Inkscape's PenTool works. For now, I am trying to achieve the 'B-Spline' mode.
The issue is that my curve does not ...
1
vote
0
answers
49
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 ...
2
votes
1
answer
117
views
PyQt6: keep widget width in a layout equal [closed]
I have a main layout in PyQt6 with a left and right side (QHBoxLayout containing two elements). I want both sides to always be 50% of the main window width. However, when a widget on the left side ...
1
vote
0
answers
147
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 ...
2
votes
0
answers
163
views
Is there an equivalent of "em" for font sizes in PyQt6 StyleSheets?
In pyqt6, i am creating a fillable form. I'd like the first element in the form, the title, to be 25% larger than the rest of the elements in the form. In CSS, i'd do this by setting:
{font-size: 1....
0
votes
0
answers
80
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
43
views
How to make QTableView's drag selection behave like a QTreeView
There's a difference in behaviour between QTableView and QTreeView when it comes to selecting multiple items by dragging the mouse.
In a QTreeView you can start outside the populated area and drag ...
1
vote
0
answers
61
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 ...
2
votes
0
answers
107
views
QObject.disconnect() behavior in PySide6
I have the following PySide6 code
import sys
from PySide6.QtWidgets import (QApplication,
QWidget, QPushButton, QVBoxLayout, QHBoxLayout,
QLabel)
class Window(QWidget):
def __init__(...
1
vote
0
answers
67
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 ...
1
vote
1
answer
68
views
Pybind11 cannot integrate with Qt 6.9.1
I included Qt 6.9.1 header files and pybind11/pybind11.h in a same file. but then I use python to build a package.(the compiler is MSVC2022 x64 and I only use CMake)
this is part of setup.py:
import ...
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 ...