Can someone help me fix this issue with the QRubberBand

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?

reddit.com
u/Mundane_Algae3401 — 18 hours ago

How would you handle this problem (Card Designer)?

So I'm currently trying to make a card designer for my application (similar to the Qts Widgets Designer). I'm currently unsure if I should use the QGraphicsView/Scene for Viewing the Widgets, I want to insert via a QGraphicsProxyWidget (because I want to give my users a direct view of the finished card and not use a QGraphicsRectItem) and I made a small prototype and had a lot of problems like the movement of QGraphicsProxyWidget where you need a wrapper item for it to be moveable (Stack Overflow post for this problem) and some others or creating my own view with a QWidget.

I just plan to create a simple card designer for my application so you can use widgets to design it and layouts and thats it. I don't need rotation or z-ordering. Would you still recommend using the QGraphicsView or create my own view? Do you have any recommendations which route I should go?

Just you know: My Qt experience is very limited and I am still learning it.
Qt Widgets 6.11.1 and C++20

u/Mundane_Algae3401 — 9 days ago