Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
73 views

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, ...
GYA007's user avatar
  • 61
2 votes
0 answers
30 views

I have a QVBoxLayout that contains three QLabels and a QHBoxLayout nested inside it. The nested QHboxLayout itself also has two nested buttons. When the buttons are pressed, I want to empty the entire ...
somethingsomethingDarkSide's user avatar
3 votes
1 answer
84 views

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 ...
Tom's user avatar
  • 75
1 vote
0 answers
44 views

I'm getting some strange behavior in my Yocto build of PySide6. I've cloned the meta-qt6 layer (release 6.8) and I want to install PySide6. I found that I was getting a bunch of do_fetch errors ...
Camstillo's user avatar
Advice
0 votes
2 replies
103 views

I'm using python and PySide6 to build GUI desktop apps. In my code I generate a list of figures, and then pass them to my view to display each in a separate tab. Right now i loop through the list, and ...
Adrian V's user avatar
1 vote
0 answers
48 views

In my paintEvent for QPushButton I am getting the current text color, whether the button is disabled, hovered, checked, or static. This works for disabled but when the button is hovered or checked, it'...
user17463321's user avatar
2 votes
1 answer
100 views

I am having difficulties integrating asyncio with Pyside. What I want to acheive: I have several emitters (up to 30) sending messages independently every few milliseconds (200ms) in multicast. I have ...
Antoine101's user avatar
1 vote
1 answer
47 views

I have a QListView that is configured like this: self.added_items_model = ReorderableModel(self.ui.lstViewAddedItems) lstViewAddedItems = self.ui.lstViewAddedItems lstViewAddedItems.setModel(self....
PMC's user avatar
  • 11
1 vote
1 answer
128 views

The goal is to have a QTreeView that doesn't take up real estate on the GUI when not needed. QComboBox seems like a great vehicle to make that happen. But maybe there's a better way that's similarly ...
Tom Grundy's user avatar
2 votes
0 answers
98 views

I'm working on an antenna 3D polar plot program which need to render real-time plot. Things I'm using: Python 3.11.9 PyQt6 6.9.1 PyQt6-WebEngine-Qt6 6.9.2 plotly 6.3.1 Issue: The code can generate ...
JusMave's user avatar
  • 21
-1 votes
1 answer
92 views

I am trying to start a Dialog including QListWidget. In this list every time a status is changed, the list should get a new line. At the end, if the backup process has finished, the dialog should ...
Stefan Bongers's user avatar
1 vote
0 answers
87 views

I'm trying to import my resource file but through my package. How do I generate the ui/resource files so that it can specify the package name. So that instead of this: import resources_rc it should ...
Wait's user avatar
  • 51
2 votes
0 answers
157 views

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....
ask53's user avatar
  • 41
1 vote
0 answers
79 views

I’m making an application where I’m converting a .xml to a .ui file (qtdesigner), and rendering that using pyqt. However, there is some data in the .xml that I do not want to render (e.g. as metadata);...
GYA007's user avatar
  • 61
1 vote
0 answers
43 views

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 ...
mahkitah's user avatar
  • 1,024
1 vote
0 answers
61 views

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 ...
Tom's user avatar
  • 75
1 vote
0 answers
56 views

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 ...
Tom's user avatar
  • 75
1 vote
1 answer
67 views

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 ...
admbrill's user avatar
0 votes
0 answers
63 views

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 ...
P0sitive's user avatar
1 vote
1 answer
163 views

The white block on top right corner gets auto added whenever I insert a row. It selects all rows and columns when I click on it just like in excel I can see it makes space for S.nos; I've decided it'...
JinxSeven's user avatar
0 votes
1 answer
55 views

I am trying to paint pyqtgraph.opengl.GLLinePlotItem nested within other GLLinePlotItem with different parents, where the painted result is identical had you not nested them and instead just painted ...
THATS MY QUANT MY QUANTITATIVE's user avatar
0 votes
1 answer
82 views

In a pyside6 app, local pdf-files get displayed with QPdfView. The user can go through many pdfs within a second, and some of them take rather long to load and parse. Thus, loading the latest pdf in a ...
mpa's user avatar
  • 98
0 votes
0 answers
65 views

Contrary to the spec, CSS setting text-align: center is ignored by QLabel (other settings like font-size and color are respected): from PyQt6.QtWidgets import QApplication, QLabel app = QApplication([...
sds's user avatar
  • 60.5k
0 votes
1 answer
66 views

Is it possible to give a gradient background to a plot in pyqtgraph & pyqt6? Minimal code to start with: import pyqtgraph as pg from PyQt6.QtWidgets import QApplication # Create application app = ...
Nick Skywalker's user avatar
0 votes
0 answers
38 views

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 ...
REMIZERexe's user avatar
-1 votes
1 answer
73 views

A QGraphicsScene contains a number of MyItem items. A MyItem is a QGraphicsItemGroup which contains, among other child items, a QGraphicsEllipseItem centred at the local origin. A number of MyItem ...
spraff's user avatar
  • 33.7k
1 vote
1 answer
68 views

My main file for a pyqt application looks like this: #!/usr/bin/env python3 from PyQt5.QtWidgets import QApplication import signal import sys from main_window import MainWindow if __name__ == "...
spraff's user avatar
  • 33.7k
0 votes
0 answers
86 views

How the dissolve looks like if you want to dissolve the entire window: And if I apply it to a single widget like this: self.test_label = QLabel() self.test_label.setFixedSize(300, 300)...
Edward's user avatar
  • 49
1 vote
1 answer
175 views

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 ...
mike rodent's user avatar
  • 16.1k
0 votes
2 answers
83 views

I am using PyQt and Install Forge for an internal tool I am building for my current job, I cannot find any internal guides on whether I should be including my dist and build folders as generated by ...
Noah Cunningham Baker's user avatar
1 vote
1 answer
178 views

The animated .webp file on the left is being played on Google Chrome, while the one on the right with a QMovie. I've tested this on PyQt6 6.7.1, 6.8.1 and 6.9.1, and also on PySide6 6.8.2. There ...
Edward's user avatar
  • 49
1 vote
1 answer
89 views

I have multiple tabs that a user can switch between. I need a widget on a given tab to run an exit function when that tab is no longer selected. For example, if the user currently has tab_1 selected, ...
BobJoe1803's user avatar
1 vote
0 answers
189 views

I'm using Matplotlib on Arch Linux with KDE Plasma 6.3.5 (Wayland). My system's default Qt font is set to "WenQuanYi Micro Hei" (文泉驿微米黑), and it displays correctly in all system applications....
文宇强's user avatar
1 vote
0 answers
142 views

I am developing two applications, a Next.js and a QtPython application. The goal is that the Next.js application will generate a WebRTC offer, post it to a Firebase document, and begin polling for an ...
Medhansh Garg's user avatar
1 vote
0 answers
112 views

NOT A DUPLICATE AS THIS INVOLVES A COMPLETELY SILENT ERROR I have a signal which looks like this: add_history_row_signal = QtCore.pyqtSignal(int, int) The first int is a key for a dict, to retrieve a ...
mike rodent's user avatar
  • 16.1k
0 votes
0 answers
51 views

I wrote a class that makes a window, part of this class is a function dynamic_table_view that creates a TableView widget with a possibility to view data and edit it right in that same window: def ...
polya's user avatar
  • 23
0 votes
1 answer
186 views

On Windows 11, when I set the background color of items in my QTableWidget using item.setBackground(QColor(210,210,210)), the color doesn't fill the cell entirely, there is some sort of padding with ...
Fz3's user avatar
  • 11
1 vote
1 answer
98 views

I want to move a QWidget from one position to another. I tried the following: import sys from PySide6.QtWidgets import ( QApplication, QMainWindow, QTableWidget, QLabel, QPushButton, QVBoxLayout, ...
Rik's user avatar
  • 647
0 votes
1 answer
168 views

When I create a simple application with the below code, I get the additional errors/messages (all starting with QPainter) in the command line output in some scenarios (detailed in table below). It ...
Matlabinator's user avatar
2 votes
1 answer
110 views

General overview I am trying to set an image in clipboard into different linux’s targets. As example, depending of the context, the same image could be paste in png, jpg, or whatever else. The problem ...
fauve's user avatar
  • 321
0 votes
0 answers
47 views

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=...
fauve's user avatar
  • 321
0 votes
1 answer
447 views

I am trying to build a pyside6 application with a light mode and a dark mode. That means that my icons also need to be light and dark mode. Now I was hoping to set the color of the QIcon SVGs inside ...
max's user avatar
  • 105
2 votes
1 answer
119 views

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, ...
polya's user avatar
  • 23
-1 votes
1 answer
67 views

I'm trying to fill a QSQlQueryModel with data using setQuery and a specific database, but I get an error which to me looks like setQuery won't accept a string - despite that is what is described in ...
Seamus Draide's user avatar
0 votes
1 answer
88 views

I want to implement a custom lexer (syntax highlighting) for my QScintilla based IDE in PyQt. I tried to use tree sitter's python bindings to parse the editor's text, then use a bunch of if/else ...
ktechhydle's user avatar
0 votes
2 answers
136 views

I would like to change the color or adjust the size of this rectangle behind the open Combobox I noticed that there is a problem with the increased size of this white background and the offset options ...
nekoshaurman's user avatar
1 vote
0 answers
29 views

When adding a padding to the top of a QLabel, QGridLayout also adds a padding/margin on the left: Why? is this a bug? class MainWindow(QWidget): def __init__(self): super().__init__() ...
mpa's user avatar
  • 98
0 votes
1 answer
87 views

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)...
Ghost's user avatar
  • 1,594
0 votes
1 answer
50 views

New to Qt. I'm trying to create a general purpose ComboBox that can be used in multiple situations. This code works when the Save button is pressed. However I would like to dispense with the save ...
ssbg's user avatar
  • 13
0 votes
0 answers
58 views

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 ...
Edward's user avatar
  • 49

1
2 3 4 5
345