Qt QGraphicsScene AddWidget QSvgWidget
Qt.Jo.Ha last edited by
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?
What do you mean by broken ?
What are you getting ?
What are you expecting ?
Qt.Jo.Ha last edited by Qt.Jo.Ha
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.
eyllanesc last edited by
@Qt-Jo-Ha Could you provide images that illustrate the cases you point to: button and QGraphicsView?
Asperamanca last edited by
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.