Questions tagged [qgraphicseffect]
8 questions
10
votes
2 answers
Can I apply a Neumorphism effect to a QWidget?
While Qt provides the QGraphicsDropShadowEffect, there's no "Neumorphism" effect available:
In css there is the box-shadow property (that's how it's done in the image above), which can have multiple colors, but Qt lacks support for that property,…

musicamante
- 41,230
- 6
- 33
- 58
5
votes
3 answers
Using QGraphicsDropShadowEffect with multiple widgets
I want to set a shadow on several widgets using QGraphicsDropShadowEffect and I am wondering if there is a better way to do so without having to write the same code over and over again for every instance where I want to use it like in my example…

Richard
- 445
- 1
- 5
- 21
2
votes
1 answer
How does PyQt5's QGraphicsColorizeEffect() affect the color of a pixel exactly?
I'm using QGraphicsColorizeEffect() in a python program to colorize a QGraphicsPixmapItem. I'm happy with how it works, as it's meant to highlight that the item has been "selected" by the user, however it made me wonder what is the exact logic or…

alesparise
- 23
- 5
1
vote
0 answers
How to fix display problem when I use QGraphicsView and QGraphicsEffect together in Qt?
I have a problem when use QGraphicsView and QGraphicsBlurEffect in my project. When I put them together, my program does not work normally. I wrote a tiny program to reproduce this problem.
The Widget class is inherited from…

confused_coder
- 11
- 2
1
vote
1 answer
How to add a QGraphicsEffect to a QAbstractItemView in Qt?
I'm trying to add a QGraphicsEffect to a QAbstractItemView (could be a QListView, QTableView, it should be similar for all of them) in Qt (using PySide2 in Python 2.7, but should apply to any language with Qt).
I have a suspicion that due to the way…

Mitchell Kehn
- 97
- 4
1
vote
0 answers
What's different between QListView and QTableView in paintEvent?
I have tested customized QGraphicsEffect and founded a weird case.
I applied the EFFECT on my dialog and it does not work in QListView.
Here is simple test,
from PySide2.QtCore import Qt, QPoint
from PySide2.QtWidgets import QDialog,…

Hyun-geun Kim
- 919
- 3
- 22
- 37
0
votes
1 answer
QGraphicsEffect on pyqt, blinking a button
I am building a GUI on python and pyqt.
The GUI has a lot of pushbuttons, generated through class LED, meaning each led has 3 buttons, for an n number of leds.
In a few of the buttons, I want an effect that changes the opacity of the pushbutton, in…

Atma
- 3
- 1
0
votes
1 answer
How to create a basic custom QGraphicsEffect in Qt?
I have been trying to create a basic QGraphicsEffect to change the colors of the widget, but first I tried to make an effect that does nothing like so:
class QGraphicsSepiaEffect(QtWidgets.QGraphicsEffect):
def draw(painter):
pixmap =…

Joan Venge
- 315,713
- 212
- 479
- 689