Questions tagged [pyqt5]
Qt 5 bindings for Python programming. This allows programmer to make Qt 5 graphical user interfaces using Python syntax.
pyqt5
14,819
questions
0
votes
0
answers
26
views
QLinguist, pyqt5 translation in different files
I have a QT aplication, and in GUI i usses subclasses e.g.
Code in file1:
class Test(QWidget):
def __init__():
print(self.tr("hi! I'm test"))
...
Code in file2:
class ...
0
votes
1
answer
39
views
Stylesheet issue in treewidget in pyqt5?
Code below populate a treewidget. TO change the design of the rows in treewidget, we add CSS like codes to stylesheet of the treewidget like below:
self.treeWidget = QTreeWidget()
...
0
votes
0
answers
72
views
Problems installing pyqt6-tools
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [62 lines of output]
pyproject.toml: line 7: using '[tool.sip....
0
votes
0
answers
19
views
PyQt5 pyqtsignal object has no attribute connect [duplicate]
I'm working on a PyQt5 application for a course and need to implement a pop-up menu that appears when I right-click on the screen. I attempted to implement it, but I'm encountering an error stating ...
0
votes
0
answers
15
views
Rotate QCursor - PyQt5 [duplicate]
I want to rotate the icon of the QCursor.
I tried using the following code, but it seems not working, I can't see the actual Size icon (I see the default icon) and the rotation is't taking place.
...
0
votes
1
answer
192
views
install forge Error loading python DLL: python312.dll. Cant find this module
I am using install forge to create a Windows installer for my app. I create the dist folder using pyinstaller. In there I find the .exe and many files and folders. If I start this .exe everything ...
0
votes
2
answers
44
views
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file(Background on this error at: https://sqlalche.me/e/20/e3q8)
I have an app that uses sqlalchemy to manage a sqlite database. The app was created using pyqt5 and I have created all the classes for the database. Now I am in the process of create an .exe file ...
0
votes
0
answers
40
views
.exe file created using pyinstaller is not workinng
I am tryng to make an executable file for my app created with pyqt5. I am using pyinstaller to create the dist folder and using this command:
pyinstaller main.py
It runs ok. There ir no error message ...
1
vote
2
answers
33
views
How can I set the focus to an invisible button or the window itself in a QDialog (PyQt5)?
I want to have a QDialog that blocks the interaction with the MainWindow, but where initially no widget has a focus, i. e. no button has a blue border and gets pushed when hitting "Enter".
I ...
0
votes
0
answers
26
views
Animation graph with plotly and PyQt5
I'm trying to produce an animated graph with plotly and display it in pyqt5 windows.
I use QWebEngineView() to desplay a graph in Pyqt5.
code :
import sys
import pandas as pd
import numpy as np
import ...
0
votes
0
answers
57
views
pytest using PyQt - Windows fatal exception: code 0x8001010d
This relates to pytest - Windows fatal exception: code 0x8001010d but i narrowed the error down to the simplest program.
from PyQt5 import QtWidgets
q_app = QtWidgets.QApplication([])
def ...
0
votes
0
answers
72
views
add a progress bar before opening a window
I have a pyqt project where there is a large file processing, when I click on a button (Browse Folder) that will open a window containing treeviews that present the hierarchy of files, the window ...
0
votes
0
answers
26
views
Styling is corrupted in an EXE output from building with pyinstaller [duplicate]
I have a python project based on PyQt5 which I build the GUI using PyQt5 Designer. The python file when it is run, there is no issue found.
I build it with pyinstaller using the below command:
...
0
votes
0
answers
32
views
Pyuic5 generating file with syntax errors
Using Qt designer in order to create .ui file and then using pyuic5 to translate it to .py format yields file riddled with syntax errors because of "::" syntax.
Command used:
pyuic5 -x ...
0
votes
1
answer
28
views
PyQt5 - QThread subclass that reimplements run() but also handles events
This link explains that QThread can be used in one of two ways:
A QThread instance that runs a default event loop. You can dispatch events to be executed by the thread using signals and a worker ...