Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
2 replies
46 views

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 ...
Jeremy Wilson's user avatar
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
1 vote
0 answers
57 views

Does anyone know how to remove this white space? This is my current stylesheet: QTableView { background-color: #EEEEEE; } QTableView::item { background-color: transparent; } QHeaderView::...
Shadow_Guo'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
49 views

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 ...
zoagold's user avatar
  • 21
2 votes
1 answer
114 views

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 ...
Tomper's user avatar
  • 100
1 vote
0 answers
145 views

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 ...
AGA's user avatar
  • 80
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
0 votes
0 answers
79 views

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....
Scxve Ve's user avatar
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
2 votes
0 answers
104 views

I have the following PySide6 code import sys from PySide6.QtWidgets import (QApplication, QWidget, QPushButton, QVBoxLayout, QHBoxLayout, QLabel) class Window(QWidget): def __init__(...
Anonimista's user avatar
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
3 votes
0 answers
84 views

I'm trying to build an app that will accurately count time between taps, like a tap function on a metronome but finding the results to be inaccurate; current_time = QDateTime.currentMSecsSinceEpoch () ...
purpleovskoff's user avatar
0 votes
0 answers
47 views

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 ...
Pascal Vallaster's user avatar
0 votes
1 answer
89 views

I'm attempting to add a drop shadow effect around a QML popup, but when I do this with a MultiEffect, it creates an additional border around the popup (beyond the shadow). Here's a minimal QML example ...
DJMcMayhem's user avatar
  • 7,750
0 votes
0 answers
46 views

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 ...
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 vote
1 answer
101 views

Here is the code. import sys from PyQt6.QtWidgets import QApplication from qpageview import View app = QApplication(sys.argv) view = View() view.show() sys.exit(app.exec()) When I run it from ...
Petr L's user avatar
  • 47
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
-1 votes
1 answer
47 views

I built my app, which has access to some files in its folder, which it can change (rewrite). Exactly they are config.ini and save file. When I run it in VS Code everything works perfectly, and when I ...
Super_Tsario's user avatar
0 votes
1 answer
129 views

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: ...
Cigaryno's user avatar
0 votes
0 answers
94 views

I am trying to make a QWidget wrapper class which has a pyqtgraph.PlotWidget within it to plot my data. But when I add labels into my graph, it somehow gets cut off or clipped at the edge of the ...
Aldric Goh's user avatar
0 votes
1 answer
58 views

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 ...
fauve's user avatar
  • 321
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
0 answers
82 views

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: ...
while true read's user avatar
0 votes
1 answer
64 views

I'm trying to make a QTableView with Python and PyQt6 that display a popup message and posibly some tools, like filters, when you click in a header section. I'm trying to replace an excel spreadsheet ...
Andrés Necochea's user avatar
3 votes
1 answer
94 views

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 ...
steelheadjw's user avatar
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
1 vote
0 answers
62 views

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 ...
Clem's user avatar
  • 21
0 votes
0 answers
43 views

I am trying to trigger through code the clicking of a QMenu submenu item. For example, I want to trigger "report 2 under Jack's reports" in the following QMenu/submenu: The following will ...
Dennis's user avatar
  • 269
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
129 views

I am making a PyQt6 application using the QtWebEngine module. I am trying to use Pyinstaller to turn it into a .app file that can be distributed. The issue I'm currently facing is that the application ...
while true read's user avatar
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 vote
1 answer
88 views

Recently made the change from PyQt5 to PyQt6, and one of the side-effects is that PyQt6 honors the windows theme - as I use dark theme, its meant that its changed the colours of the objects on my app. ...
Carl Beech's user avatar
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
1 vote
0 answers
82 views

I'm using qtpy (wrapping PyQt6) and have a window with dock widgets like so: However, when I drag and re-dock a dock widget, for some unknown reason the widget redocks with a huge gap between the ...
mchen's user avatar
  • 10.3k
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
0 votes
0 answers
53 views

I'm using PyQt6 with PyQtDarkTheme and have encountered a UI issue: When opening a QComboBox popup, the currently selected item doesn't show the usual ✔ checkmark, or it's so low-contrast that it's ...
Gykonik's user avatar
  • 686
0 votes
1 answer
60 views

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')) ....
Lukas's user avatar
  • 13
0 votes
0 answers
91 views

I'm working on an application that uses a QTableView and have been trying to get it to respond correctly to dragging and dropping rows in order to rearrange them. After a lot of difficulty, I found ...
mikstravaganza's user avatar
1 vote
1 answer
87 views

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 ...
nottelling's user avatar
2 votes
1 answer
166 views

i am trying to test some code using PyQt6. When I try to display en MenuBar in my main.qml, i have this error : QQmlApplicationEngine failed to load component file:///C:/Users/[blablabla]/GUIt/main....
LuDo_Sniper's user avatar
0 votes
1 answer
64 views

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 ...
while true read's user avatar
0 votes
0 answers
48 views

I have an application using a QTreeView widget and a subclass of the QFileSystemModel. The purpose of the subclass is to modify the way sorting is done on file type (col 2). With PyQt5, items are ...
dave's user avatar
  • 43
0 votes
0 answers
59 views

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, ...
ole's user avatar
  • 11
0 votes
0 answers
53 views

I'm having trouble understanding how to implement the various sizing methods and details to cause a containing window to shrink when its widgets shrink. Below is the code of a minimally reproducible ...
mikstravaganza's user avatar

1
2 3 4 5
20