Clear previous drawings on repaint
Unsolved
General and Desktop
-
I have a totally transparent, top-level, sreen-sized widget, which shows some text waterwarks on macOS. I need to update the system time text on one-minutes intervals. When I call the repaint method, the previously drawn text is not erased completely. Please see the attached image and demo project.
I've seen several posts on stackoverflow about this topic, but none of them works for me. Could anyone show the most correct way to handle it with Qt? Thanks!
Leo
-
Hi and welcome to devnet,
What if you paint the whole widget with a transparent rect before painting the text ?