PySide2 QGraphicsEffect to create a Blur effect

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

PySide2 QGraphicsEffect to create a Blur effect

Post by Kunda1 »

Background thread https://forum.freecadweb.org/viewtopic. ... 22#p335922
and
https://forum.freecadweb.org/viewtopic. ... 20#p292769
OficineRobotica wrote: Sun Mar 10, 2019 10:57 pm Unfortunately i discovered that styling Qt text can't be done directly with a style sheet but it is available trough PySide QGraphicsEffect . I'm most interested in text outline and background blur. https://srinikom.github.io/pyside-docs/ ... ffect.html
I don't know if a widget with transparent background and and blur applied would pick the pixels underneath it (i know that on desktop that is the compositor work) but even implementing it with transparent background->noise map(as target image)->qtblur would be awesome
Image

Any Qt familiar folks care to jump in with suggestions on how we can implement this?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply