Unsolved QSvgWidget blocking interaction with other widgets.
-
@SPlatten How big is pobjSVGwidget? Maybe it covers all these other widgets? What is pobjParWidget?
-
@jsulm The SVG widget is shown in the screen shot I added, its very small.
pobjParent is a pointer to the Window node, pobjParWidget is the widget associated with the window node.
-
@SPlatten said in QSvgWidget blocking interaction with other widgets.:
its very small
The icon is very small, but not necessarily the widget.
-
@jsulm , how can I tell? I am just parsing the parent to the SVG widget, I though the QSvgWidget would get its geometry from the SVG itself?
I'm scaling the SVG in the transform, however having just added debug to display the geometry, this doesn't seem to effect the width and height of the SVG which is still 640x480.
-
@SPlatten said in QSvgWidget blocking interaction with other widgets.:
I though the QSvgWidget would get its geometry from the SVG itself?
That I don't know. You could try to set fix size on SVG widget and see whether other widgets work then (just to see whether my guess is correct).
-
@jsulm I've just removed the width and height attributes from the SVG, now everything works perfectly.
-
@SPlatten That answers your question: "I though the QSvgWidget would get its geometry from the SVG itself?" :-)
-
@SPlatten said in QSvgWidget blocking interaction with other widgets.:
I though the QSvgWidget would get its geometry from the SVG itself?
No, it would not. It will only update the size hint of the widget.
You are supposed to adjust the size yourself. -
@jsulm , yes, but shouldn't that take into account any scaling transformation?
-
@SPlatten Scaling is something you usually have to explicitly do/trigger. QLabel will not do scaling by default, for example, if I remember correctly.
-
@jsulm qlabel->setScaledContents(bool) default is false;