Porting Graphics App from wxWidgets
-
I have a sort of drawing/painting program that I wrote using wxWidgets but I'm now trying to port across to Qt because there are just too many bugs in wxWidgets.
The core of the program is displaying and interacting with a 2d graphics area that can be scrolled and resized under user control. There are a large number of different graphics items, some of which are vector type graphics drawn by the program, and some of which are bitmap images.
Performance is important - well response time to the user. So for example on resize I was doing a "quick and dirty" resize of images, with a more higher quality resize of images happening in a background thread.
Anti-aliasing and transparency (alpha channel) is also a must. There are no moving graphic elements.
So I'm pretty new to all this Qt stuff. I think I can handle all the widgets based UI, but I'd really appreciate any pointers on where I should be looking for the graphics side of things. There seem so many options!
-
@Mike-Moreton said in Porting Graphics App from wxWidgets:
So I'm pretty new to all this Qt stuff. I think I can handle all the widgets based UI, but I'd really appreciate any pointers on where I should be looking for the graphics side of things. There seem so many options!
Start here:
check out the
QGraphicsView
examples:And this one for painting on Widgets: