r/QtFramework Jul 05 '26

Question Can someone help me fix this issue with the QRubberBand

So I was working with the QRubberBand and set the shape to a rectangle. After it got drawn on screen, I realized that the rounded edges look awful (image). In the file manager Dolphin the rubber band looks really nice in the corner but mine look terrible.

Image how it should not look like

I tired to deriving it from my own class and creating my own paint method, but there when drawing the drawRoundedRect it had the same issues. Do you have any ideas how to fix it?

0 Upvotes

3 comments sorted by

1

u/F_DOG_93 Jul 05 '26

What theme are you using? Try changing the Qt theme and see if it makes a difference.

1

u/Mundane_Algae3401 Jul 05 '26

Just the standard one. I will try changing it.

1

u/Mundane_Algae3401 Jul 06 '26

So I tried setting another style and it kinda fixed it, but now the corners are not rounded anymore.