Nfrancisj
5th November 2019, 19:52
I'm using PySide2, to create a node graph based widget, which is set inside a scrollarea.
I would like to save a snapshot of all the nodes inside my scrollarea. Currently I have to take a screenshot, scroll, and take another, and another, then I have to use photoshop to stitch them together. (basically pan and use snipping tool and stitch to make a image with all my nodes.)
I found this on Stack,
.grabWidget() & .grab() but it says in the Qt docs that it has been discontinued. If i implement it anyway, it crashes my program.
QtGui.QPixmap.grabWidget(widget)
https://stackoverflow.com/questions/21609429/how-to-take-a-screenshot-of-a-pyside-widget-that-is-a-window-and-include-the-ti
Is there another way to create a snapshot?
I would like to save a snapshot of all the nodes inside my scrollarea. Currently I have to take a screenshot, scroll, and take another, and another, then I have to use photoshop to stitch them together. (basically pan and use snipping tool and stitch to make a image with all my nodes.)
I found this on Stack,
.grabWidget() & .grab() but it says in the Qt docs that it has been discontinued. If i implement it anyway, it crashes my program.
QtGui.QPixmap.grabWidget(widget)
https://stackoverflow.com/questions/21609429/how-to-take-a-screenshot-of-a-pyside-widget-that-is-a-window-and-include-the-ti
Is there another way to create a snapshot?