Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

How to get rid of blank space around a QLabel in a QVBoxLayout() in PyQt5

I have a simple window that has a QLabel as a header and a QFrame that contains some input boxes. I tried to make a layout for them, but I noticed that the QFrame always aligns to the bottom even when ...
DaVarPhi's user avatar
-1 votes
0 answers
22 views

Widget now showing after .deleteLater on run time

I have an application where I create a QHBoxLayout with some widgets. They are displaying correctly. However, on run time I need to replace some of the widget that that portion is not working. If I ...
Larissa Farina's user avatar
0 votes
0 answers
43 views

Login Button in Qt Designer [closed]

I created a login interface in Qt Designer and when I converted it to Python code and ran it, everything looked just fine up until I clicked the log-in button and that was when the program just ended ...
Lamin Mansaray's user avatar
-1 votes
0 answers
38 views

PyQtGraph ImageView: ViewBoxes are Linked, How to Separate Them? [closed]

I am building a DICOM viewer using pyqtgraph.ImageView, but I'm facing an issue where all the views seem to share the same ViewBox. I can display different images in each ImageView, but when I set the ...
Kareem Noureddine's user avatar
0 votes
1 answer
46 views

qtodotxt / PyQt5 dumps core

Running the test.sh script below dumps core on various pcs running both fedora 40 and 41: test.sh: (beware it destroys your ./tmp and your pip cache) cat /etc/os-release python --version which python ...
Olivier's user avatar
  • 118
0 votes
0 answers
21 views

"ERPNext Print/Preview Functionality Not Working in PyQt5 Desktop Application Integration"

I am integrating an ERPNext application (built on the Frappe framework) with a PyQt5-based desktop application. I can able to use erpnext application through pyqt5 windows now, everything is working ...
Saurav Kumar's user avatar
0 votes
0 answers
27 views

Can I use pyqtgraph to plot live serial data stream?

I'm trying to plot 10-100Hz datas coming from a distance meter sensor over a USB/serial interface on a raspberry. I can read datas like this: value = ser.readline().decode('utf-8') data = value.split(&...
Lionel Fichen's user avatar
2 votes
1 answer
70 views

Placing label next to a slider handle

I want a label near the slider's handle, that displays the current value. I used the code provided on the forum and tried to adapt it to Python from PyQt5 import QtCore, QtGui, QtWidgets class test(...
Viacheslav's user avatar
0 votes
0 answers
38 views

Transparency in PyQt widgets & VTK

I have a few widgets such as a QLabel and QPushbuttons hovering over a VTK scene like below. As you can see, when I add a border-radius to the them, the remaining area around the labels or buttons is ...
Rishi Aithal's user avatar
0 votes
1 answer
54 views

How can I convert my python ( .py) file into an executable (.exe) file using pyinstaller?

I am working on a PySide6 application that consists of multiple Python files and folders. When I run the project using python main.py, everything works perfectly. However, I’m struggling to convert it ...
Sei Godwin's user avatar
0 votes
0 answers
29 views

Why is my QPainterPath border not visible on the right and bottom of my window? [duplicate]

I am trying to build a custom shaped translucent QWidget using a QPainterPath which draws the shape using QBrush. When I draw the shape as a border (1.0 px), only the left and top edge shows up. I am ...
Parikshit's user avatar
2 votes
0 answers
41 views

Folium map displayed with PyQT5 flashes at every update

I am designing a map visualizer with PyQT5 and using folium. I created something but there are a few problems I couldn't solve. In this question I am only focusing on one of them and I will ask others ...
Alperen Ölçer's user avatar
0 votes
1 answer
30 views

Unable to get PYQT5 headless print HTML to PDF work as Azure function App with Linux App service plan

I have a code something like below to print HTML as PDF using PyQt5 library. This code works fine when tested via VS code function core tools however when it is deployed as azure function app I get an ...
rcs's user avatar
  • 1
0 votes
0 answers
31 views

Drawing polygons using pyqt5

I am trying to create a program that allows users to draw different types of shapes by drawing simple lines using Pyqt5. The program must detect if a shape is closed and then automatically fill the ...
Ahoora's user avatar
  • 13
0 votes
0 answers
30 views

"Unhandled exception in Script" on PyQt5 exe file

I've been trying to create an exe file through pyinstaller for my PyQt5 program. However, even after the exe file was create, everytime I tried to run it it gave me this error: Failed to execute ...
HorizonCrosser 128's user avatar
1 vote
1 answer
33 views

PyQt WebEngine custom scheme crash

I am currently trying to implement a custom url scheme using an in-app browser made with PyQtWebEngine. The problem I am facing is that the whole app crashes right after loading the custom scheme url. ...
Joa's user avatar
  • 52
1 vote
0 answers
29 views

QThread msleep() vs. QTimer in PyQt5: Key Differences, Best Practices, and Use Cases [duplicate]

I am working on a PyQt5 application where I need to perform periodic tasks. I've come across two primary approaches: Using time.sleep() or QThread.msleep() in a subclass of QThread. Using QTimer. ...
Sardor Abdirayimov's user avatar
1 vote
0 answers
24 views

How do I connect to inherited signals in PyQt? [duplicate]

I have a PyQt application where I need to connect signals inherited from a parent class in a few child classes. Let's say my BaseClass defines two signals a and b: class BaseClass(QObject): ...
curioso's user avatar
  • 195
1 vote
2 answers
48 views

Open file from QFileDialog in native file explorer via right-click in PyQt5?

In Firefox, if I download a file, there is a folder icon "Show in Folder": ... which when clicked, opens the native OS file explorer in the Downloads directory, with the target download ...
sdbbs's user avatar
  • 5,364
1 vote
1 answer
36 views

Drag Items from QListWidget and drop it to the QTableWidget in pyQT

I have a QListWidget and a QTableWidget in my main window. I need to drag an element from the QListWidget and place it in the QTableWidget as a row or column (depends on whether the event will be ...
z3r0cr33d's user avatar
0 votes
1 answer
44 views

Changing background color of inidividiual row (verticalHeader) labels in PyQt5 QTableView?

In my application, I would like to conditionally change the text and background color of arbitrary row labels (verticalHeader) of QTableView. In the example below, to simplify things, all I'm trying ...
sdbbs's user avatar
  • 5,364
0 votes
0 answers
32 views

How to indent expandable row data in QTreeView, PyQt5 [duplicate]

This is a small example of my TableWidget: from PyQt5.QtGui import QStandardItem, QStandardItemModel, QIcon from PyQt5.QtWidgets import QVBoxLayout, QWidget, QStyledItemDelegate, QStyle, QTreeView, ...
Souleater's user avatar
1 vote
0 answers
36 views

MySQL causing the PyQT5 to quit suddenly

I started coding a data repository in Python. I have to use MySQL connector. There is an issue that's causing me headaches and I have to get the project read. I have coded the user interface in PyQT5 ...
AminTN's user avatar
  • 110
0 votes
0 answers
22 views

Updating actor's scalar range of ImageData in PyVista - does not update

I am writing a GUI with PyQt5 integrating a PyVista scene to display a 3D volumetric image and its sections, specifically Magnetic Resonance Imaging data. My GUI lets the user select the colormap ...
Davide's user avatar
  • 1
0 votes
1 answer
30 views

Moving Items in QGraphicsScene with Collisions

I am trying to move multiple or single selected item(a rectangle) in a QGraphicsView with collision detection, so that they don't move through each other but snap to either end without blocking ...
rummy rummyrum's user avatar
-1 votes
1 answer
46 views

in pyqt5 I want to create Splash Screen in my WhatsApp Ui project but there is two window created how to solve it

I want to create a splash screen on my fluent Ui, but in this Ui window the title bar's button is there. I don't want this. I am beginner so help me please . I try to fix this code but I failed so ...
DINESH KUMAR's user avatar
0 votes
0 answers
57 views

QtWebEngineView not working after compiling with nuitka in Python

Took some of the code from my launcher. I display the window with the site through PySide2 and QWebEngineView. Everything works fine with Python IDLE. When I compile with nuitka, the code crashes. If ...
Aofrue's user avatar
  • 1
0 votes
0 answers
21 views

In PyQT 5, always show a QCombobox using QStyledItemDelegate in QTableView (Not just when a cell is being edited)

I'm subclassing QStyledItemDelegate to show a dropdown QCombobox in a QTableView. The delegate detects the dataType from the table's model, and if the dataType == EnumMeta, shows a dropdown list of ...
Jesse Reilly's user avatar
1 vote
0 answers
32 views

Creating a 'Draw Line' Button with Mouse Clicks in PyQt5

I'm using PyQt5 to build a GUI program similar to Microsoft Paint, but specifically for drawing shapes (components) and lines (wires) on an adjustable circuit board. So far, I've created the circuit ...
kauselis3000's user avatar
1 vote
0 answers
33 views

Qt: how to calculate image coordinates on label? [duplicate]

I am writing an app, that displays an image and allows the User to interact with the image using mouse. The image size is predefined, and in the code below it is 2000x2000. Since the window size may ...
Oleksandr Masliuchenko's user avatar
0 votes
1 answer
50 views

ui files made with qt creator have invalid syntax for qgis

I made a UI in QT Creator that only has QDialogButtonBox: When I save it out, the .ui file looks like: <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"&...
GammaGames's user avatar
  • 1,789
0 votes
0 answers
34 views

Stack Overflow Error (0xC0000409) in Python Drawing App with Pressure Sensitive Stylus [duplicate]

I'm developing a drawing app in Python, and everything works smoothly with mouse input. However, when I use a pressure-sensitive stylus, the application crashes after a short period with the following ...
Kazber's user avatar
  • 23
0 votes
1 answer
41 views

Getting the size of an item (QStyledItemDelegate?) in a QTableView in PyQt5?

In the example below (at end of the post), what I want to do, is to have an image applied to a QTableView item (cell) if it has empty contents (as a DecorationRole, since I might have other logic ...
sdbbs's user avatar
  • 5,364
0 votes
0 answers
56 views

Bokeh s.replaceAll

I am trying to create a PyQt5 app with a Bokeh plot in a QtWebEngineWidget. While doing so I get an Error: js: Uncaught (in promise) TypeError: s.replaceAll is not a function For a proof of concept I ...
ole's user avatar
  • 1
1 vote
0 answers
23 views

data from database- sqlite table not displayed in python pyqt5 [duplicate]

i am using python and sqlite3 with pyqt5, i designed form in pypt5 designer converting it to py xml file and connecting to sqlite database table called "teacher" , i fed in the data in the ...
Siraj's user avatar
  • 21
0 votes
1 answer
42 views

Creating a custom diagonal line QBrush tiled pattern in PyQt5?

So, at first I wanted to use a gradient background to emphasize certain cells / items in my QTableView, but as it can be seen in Stretchable QLinearGradient as BackgroundRole for resizeable QTableView ...
sdbbs's user avatar
  • 5,364
0 votes
1 answer
65 views

Stretchable QLinearGradient as BackgroundRole for resizeable QTableView cells in PyQt5?

Consider this example, where I want to apply a "vertical" background to all cells in the third column of the table: import sys from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore ...
sdbbs's user avatar
  • 5,364
0 votes
1 answer
35 views

My button's color seems transparent in QtDesigner but why?

I'm using QTDesigner 5.15.8 and trying to color buttons. I have inserted one button and frame on my mainwindow. Here is the stylesheet code of mainwindow QPushButton{ background-color: red; } QFrame{ ...
cagri cihanoglu's user avatar
1 vote
0 answers
59 views

Problem with undefined symbol in QT6 in Archlinux

I installed anki with AUR package in this link: https://aur.archlinux.org/anki.git But after install I see that's application is not launching, I'm stuck how to resolve that "undefined symbol&...
fatalist's user avatar
0 votes
1 answer
23 views

Debounced Completer autoselects highlighted option when I stop arrowing through results?

I'm trying to create a debounced Typeahead widget that populates with data from my database. When I try to down arrow through the query results, the highlighted result autoselects when I stop pressing ...
J.spenc's user avatar
  • 359
1 vote
0 answers
36 views

Pyqtgraph Flask threading issue

I would like to ask whether it is possible to use Pyqtgraph in flask for plotting graphs. My simplified code: pg_layout = pg.GraphicsLayoutWidget( title=title, size=(2880, 960) ) ...
thomas chiu's user avatar
1 vote
0 answers
42 views

click a drop-down button without making its status tip disappear

A dialog has several widgets including a qpushbutton with a dropdown menu. A statustip appears when you hover over the button (I use an enterEvent() because the button is enabled only under certain ...
rai's user avatar
  • 11
0 votes
1 answer
35 views

Why are the plotly graphs inside the QWebEngineViewn not synched?

I based the code on from the answer in this problem text but when i put it on a QWebEngineView from PyQt5 it doesn't synch or do anything when i pan or zoom Python Code: import sys from PyQt5....
Diego Alexis's user avatar
0 votes
0 answers
45 views

Setup a javascript file .js with QWebEngineView in python

I have some trouble laoding a .js file into an HTML using QWebEngineView. this the python: the class WebEngine_PythonTerminal() is QWebEnginePage with python console. the function LoadCSS is used to ...
user27828246's user avatar
0 votes
1 answer
52 views

Detach tabs with PyQt5 - keeping all widgets into the detached tabs

With a PyQt application, I wanted to deliver detachable tabs where user can by a double click detach a tab and reattach it to the main window by closing the detached tab. I have minimize the problem ...
PBrockmann's user avatar
1 vote
1 answer
52 views

Command Failed: Is a directory

Trying to run PyQtDesigner through VSC and failed. I was trying to use PyQt Designer through VSC's PyqT Integrator and sent the QTDesigner path as such: /Users/atillayildirim/opt/anaconda3/pkgs/qt-...
Aybars Yıldırım's user avatar
4 votes
2 answers
107 views

How to set a QWidget hidden when mouse hovering and reappear when mouse leaving?

I am trying to create a small widget to display information. This widget is intended to be always on top, and set hidden when the mouse hovers over it so you can click or see whatever is underneath it ...
sil ora's user avatar
  • 43
2 votes
0 answers
32 views

Unable to Capture Multiple Screens using PyQt5 Python

I'm trying to make a realtime data logger where I can select a portion of my screen using snipping tool kinda action and my code will log the changing values in that pixel range over time. So far I ...
Vaibhav Vishwakarma's user avatar
0 votes
1 answer
52 views

Problems with PyQt5

I try to change my Sankey Diagram Generator GUI from Tkinter to PyQt5. I try to go by documentation and bit of experimentation but can't find why some things are happening. The code is divided into ...
Mustafa Şimşek's user avatar
1 vote
2 answers
95 views

How to draw a rectangle at (x,y) in a PyQt GraphicsView?

I'm learning Python and Qt, and as an exercise I designed a simple window in QT Designer with a QGraphicsView which would represent a stack data structure. It should hold the items on the stack as a ...
M.R.'s user avatar
  • 62

1
2 3 4 5
297