[Qt-interest] What is wrong on QPainter?

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Thu May 14 10:59:58 CEST 2009


Stefanos Antaris wrote on Wednesday, May 13, 2009 10:23 PM:

> ...
> I think i missed something.Where sould i override the
> paintEvent()?Can anyone give me a simple .h and .cpp file just to
> understand how should i use it?

Yes, you have missed something - the tons of example code you'll find in the "examples" directory in your Qt installation (http://doc.trolltech.com/4.5/examples.html). Also refer to the excellent Qt tutorials and demonstrations, for example this one: http://doc.trolltech.com/4.5/demos-composition.html

Or maybe you want to start with "basic drawing"? http://doc.trolltech.com/4.5/painting-basicdrawing.html

You see, lots of code and good documenation to get inspired from - make heavy use of that!

Cheers, Oliver
-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list