Which widget to use for a pixel art editor?
Papipone last edited by
I am exploring some functionalities of Qt I never used. I am currently developing a pixel art editor but I do not know which widget is the best for 2D drawing. I have considered to create a widget and embed an OpenGL context inside it.
Based on your experiences, what is the best way to draw 2D graphics with Qt?
Thanks for your answers.
njbrown last edited by
A regular QWidget should do just fine. Override the paintEvent, create a QPainter instance and start drawing.
QT comes with a few painting examples you can look at.
Found an open-source qt paint app you can check out too:
Papipone last edited by Papipone
Thanks, I already checked the examples. I will go for a QWidget and look for GL solutions if I encounter a problem (I want to be able to apply convolution matrices, paths for shifting colors for instance, ...).