Hi,, I wanted to ask if there is any way we can check wether a shape(using QPainter) is filled or not
Hi,, I wanted to ask if there is any way we can check wether a shape(using QPainter) is filled or not
Yes after it is painted,, or maybe there is something we can do before hand which will allow us to find out...
I am trying to remake a grid of squares i saw where we can fill and unfill the squares by clicking on them,,, I manages to fill them by using a pressMouseEvent. The box fills up when the left mouse button is pressed within the square, The X-Y starting point of the grid and the width of the squares is known. I use x() and y() to get where the LMB was clicked, find out in which square I am and drawFill a box overthere; I know that even an unfilled box is actually filled with default color. I wanted to know if can change the color back to default after clicking again on the box,, or I have completely redesign the function? and if I do, is there a commonly used method to do it
hmmmm I was thinking about it,,, was wondering it mouse event could help over there,,,,, thankyou very much
Bookmarks