How to apply multiple effects on one widget in pyqt?
I want to apply a QGraphicsDropShadowEffect
and a QGraphicsOpacityEffect
in my PyQt6 application. My goal is to have a widget, that has the QGraphicsDropShadowEffect
and that I can animate the widget’s opacity to fade it in and out depending on the user’s action.
How to apply multiple effects on one widget in pyqt?
I want to apply a QGraphicsDropShadowEffect
and a QGraphicsOpacityEffect
in my PyQt6 application. My goal is to have a widget, that has the QGraphicsDropShadowEffect
and that I can animate the widget’s opacity to fade it in and out depending on the user’s action.
How to determine model changes?
My QListView
class is feed by QAbstractListModel
, where I’ve implemented insert, remove, update rows. There is no problem between model and list view. However, I would like to subscribe to model change to do some custom calculations.
How to distinguish if change is from UI? [duplicate]
This question already has answers here: qt/pyqt how to make spinbox-signal only for user action/event? (1 answer) How to use QSignalBlocker in Python? (3 answers) Closed 1 hour ago. I have a spinbox event linked to the handler self.spinBoxBalanceHours.valueChanged.connect(self.balanceChanged) There is also programmatic change of the value self.spinBoxBalanceHours.setValue(…) How can I either determine that the […]
How to distinguish if change is from UI? [duplicate]
This question already has answers here: qt/pyqt how to make spinbox-signal only for user action/event? (1 answer) How to use QSignalBlocker in Python? (3 answers) Closed 1 hour ago. I have a spinbox event linked to the handler self.spinBoxBalanceHours.valueChanged.connect(self.balanceChanged) There is also programmatic change of the value self.spinBoxBalanceHours.setValue(…) How can I either determine that the […]
Why datachanged is not emmited?
In my model class I have
The program window does not appear and the console is empty PyQt6
I have a problem opening a file with Qt Designer. When I try to open a program without a class, everything is fine, but when I try to open a program with a class, the program works, but nothing is displayed in the console and the program does not open.
Please help me.
Can I combine multiple QPdfSearchModels into a single one to connect with my QListView?
I would like to employ the QPdfSearchModel to populate a QListView with all results of a search in a pdf. The issue is that the string I am looking for can be with or without spaces. E.g. when I am searching for “ABC DEF”, the QListView should show all results for “ABC DEF” and for “ABCDEF”.
PyQt6 QComboBox: How to Start with Placeholder Size and Expand to Largest Item?
I have this Combo Box:
I want to dynamically create QWidgets and dynamically arrange them in a QGridLayout
I’m coding a project management app for my school project. In this app, the user creates a “folder” to organize their different projects. I have implemented this functionality in the “create new project” button. Ideally, when the user creates their first project, the project should appear as a white square in the top left corner of the grid. When the user creates their second project, the next white square should take the position (0,1) and so on. I want only four project folders (white squares) per row. After that, new projects will be added to the second row, and so on. After three rows, the area should become scrollable.