Python Forum

Full Version: Drawing in PySide
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I am looking for an widget that can be used to draw on. I looked into the PySide documentation for hours, still didn't find anything. I checked out QPainter, I don't want to directly draw on the window. But, instead on an Canvas like area. I looked into QGraphicsView and QGraphicsScene, from what I understand, it doesn't support pixel manipulation. I looked into QImage, I am not sure if it can do all the thing I am looking for (like layers, frames, pan, selecting tool, etc...)

What I want is to be able to control each pixel (And not each item), and also be flexible.

I want to soon implement layers, animation frames, etc... So, is it possible?

I don't have much experience with PySide (Because I want to first know if it can do all that I need)
I have spend days looking for something that fits my needs, still nothing. It would be great if you could suggest some.

:)
You always draw "directly on the window". Widgets are just windows with protocol.

I think this is a nicely done series of tutorials on how to make custom Qt widgets, which involves painting.

https://www.mfitzp.com/tutorials/bitmap-graphics/
(Jun-23-2021, 05:00 PM)deanhystad Wrote: [ -> ]You always draw "directly on the window". Widgets are just windows with protocol.

I think this is a nicely done series of tutorials on how to make custom Qt widgets, which involves painting.

https://www.mfitzp.com/tutorials/bitmap-graphics/

I will check the tutorial out. Thanks! Heart Not related but is implementing layers and animations possible in PySide using custom widgets?