I've created my first GUI, mostly using QPainter, QLabels and QPushButtons. I've done a lot of white, but since the background sometimes will change to black, I need to add some sort of shadow / glow effect around my elements.
QPainter: The only clue I've found here is using a gradient brush as my pen. The problem is that the gradient is specified from an absolute coordinate, but I would like the centre of the gradient to always be at my pen-tip.
QPushButtons: Using stylesheets I've created colored buttons with white borders, but have no idea how to add shadows on the outside of the borders.
QLabels: Not a clue, but maybe I can use drawText instead, if I get my painter working?
Bookmarks