Generic transparent Qt widget that can catch clicks?
Posted
by Pieter
on Stack Overflow
See other posts from Stack Overflow
or by Pieter
Published on 2010-05-30T14:10:50Z
Indexed on
2010/05/30
14:22 UTC
Read the original article
Hit count: 287
I've figured out how to use QPainter to draw rectangles. Now I want to have a drawing area where if the user clicks, a 1x1 rectangle is drawn where the mouse pointer is. To accomplish this, I assume I need a transparent Qt widget that supports the clicked()
signal.
How do I make such a transparent widget? Or is there something else I can use? Perhaps I can only use the window's clicked()
signal?
© Stack Overflow or respective owner