Hello everyone.
I managed to add a QSvgWidget to a sub window and I was pleasantly surprised how easy it was -- with a ready svg file loaded and displayed (the svg picture/diagram was created with another Python script).
ex13MDITable.jpg
Qt Code:
  1. {...}
  2. self.svgPane = QtSvg.QSvgWidget('/media/vault/docs/softdev/python/pyqt/zetcode/SIDexmp.svg')
  3. subWindow01 = mdiBox.addSubWindow(self.svgPane)
  4. subWindow01.setWindowTitle('Svg pane')
  5. {...}
To copy to clipboard, switch view to plain text mode 
A button for the zooming was added, however I hit the dead end. I tried zooming with
Qt Code:
  1. qrec = QRect(20, 20, 300, 200)
  2. self.svgRenderer.setViewBox(qrec)
To copy to clipboard, switch view to plain text mode 
but it does nothing, but making the region qrec white.

What to do to make it actually zoom? In the end I would like to zoom the diagram with the mouse wheel, with a slider, or with +/- buttons.

I'll be grateful for any help or pointing to resources.

Best regards.