How to store the last checked item as default, when Opening next time , in PyQt5 QRadioButton?

It’s my code. How to store the lastly clicked/checked button as default in the next opening of the programme? For example: If we run the programme and click the 3rd button and close the entire …

I have a small problem with PyQt5 WebEngineView and html of url: “https://www.remove.bg”

I have Enabled downloads in pyqtwebengineview and it works well. However,I have some problems with the site:”https://www.remove.bg” So I downloaded The html content of that site and the …

How to add QAction to QLineEdit in pyqt5?

I am making an application in pyqt5 in which I have to add QAction to QLineEdit. I have tried many times but failed. This is what I want Please help me. Thank you in advance

Passing a function to a Worker (QObject) class in Python GUI application to prevent freezing/blocking

I am trying to find a way to successfully pass a function to a Worker class in Python using PyQT5. Instead of using the pre-defined run function (or Long-running task) in the sample Worker class code, …

QScrollArea: Scroll from item to item

Please consider the following code: from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * class Gallery(QScrollArea): def __init__(self, *args, **kwargs): …

Drawing a shape over a widget

I need to be able to draw a circle/line on top of another widget, but every time I try, it goes behind. I have read lots of posts about using QPainter over widgets but I still can’t get it to work. …

python.exe: No module named pyuic5

I want to convert my .ui file to py but pyuic5 is not recognized And when i go to my python directory this error message appears how to fix this error?

How to update PyQt progressbar from an independent function with arguments?

I want to use multiple imported function with arguments that takes some while to run. I want a ‘working’ progress bar that track the processes of that function. I have followed 2 questions already …

How to filter executables using QFileDialog? (Cross-platform solution)

The documentation for QFileDialog.getOpenFileName does not provide any clue on how to filter only executables using a const QString &filter = QString(). Here’s the code for my action using PyQt5: …

Why does QTableView have blank margins and how can I remove them?

The following PyQt program produces a window containing a QTableView with a margin space to its bottom and right (but not top and left) – even though the main-window is told to adjust itself to its …