Unsolved Qt QGraphicsScene AddWidget QSvgWidget
-
I have added QSvgWidget using addwidget to QGraphicsScene. However, the Svg is broken, so it looks like a pixmap. Is there any way to solve it?
-
Hi,
What do you mean by broken ?
What are you getting ?
What are you expecting ? -
Broken means that I used svg, but when I apply the svg image to the button widget, it looks clean, but when I addWidget to the QGraphicsScene, it looks sizzling like a pixmap.
Hopefully I get a clean widget even when I add a widget in QGraphicsScene.
-
@Qt-Jo-Ha Could you provide images that illustrate the cases you point to: button and QGraphicsView?
-
Why don't you use QGraphicsSvgItem instead?
Using a proxy widget will add all kinds of nasty surprises, one of them being that the content of the embedded widget does not scale nicely by default.