Python Forum
Drawing in PySide
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drawing in PySide
#1
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.

:)
Reply
#2
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/
Reply
#3
(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?
Reply
#4
something like this?

https://stackoverflow.com/questions/5711...aphicsview
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PySide / PyQt] Offset two images with keyboard increments carecavoador 1 994 Sep-09-2023, 12:53 PM
Last Post: deanhystad
Question Rows and colums list. PySide 6 britesc 2 913 May-31-2023, 09:00 PM
Last Post: deanhystad
  How to in PySide/PyQt, zooming in and out UI Vladlen 0 2,915 Feb-13-2019, 02:11 PM
Last Post: Vladlen
  (pyQt/pySide)setStyleSheet(border…) makes QPushButton not clickable in Maya vladlenPy 0 4,731 Apr-15-2018, 12:41 PM
Last Post: vladlenPy
  set font from dialog box pyside python Gigux 1 3,602 May-08-2017, 12:25 AM
Last Post: Joseph_f2
  browse item and assign file to variable PYSIDE Gigux 3 3,968 May-01-2017, 02:03 AM
Last Post: nilamo
  set default font main window pyside Gigux 0 3,493 Apr-23-2017, 01:13 PM
Last Post: Gigux

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020