qpainter status

Holger Schroeder kde-cygwin@mail.kde.org
Sat, 08 Feb 2003 20:14:13 +0100


Hi,

the last days i was testing the functions in qpainter_win32.cpp.
it is almost finished now. the different functions are as much
pixel-compatible as they can be, rectangles are fully compatible,
and for ellipses and stuff like that not every pixel matches exactly,
but the differences are all "less than a pixel" wide.
for a screenshot of the windows and the x11 window side by side
look at the screenshot at
http://holgis.net/qt-win/  (it is the bmp picture)
i didnīt compress it, so that every pixel can be seen.
for the testing program look at tutorial/t4.
(somewhen we should think about a better way to place the
testing routines into a seperate dir or so, but for now i donīt
want to fiddle around in the makefiles...)

the stuff left to do in this file is:

drawpixmap (important, otherwise icons donīt work)
custom pen styles
custom brush styles
make the denseXpattern brush styles transparent, now the
     drawing routine  also draws the background pixels in the
     background color. also the brush foreground color is the text
     color, thatīs the reason why the "Das ist ein Testtext"-text
     is black under x11 and red under windows. it is painted directly
     after the different brush patterns on the right...

the texts are drawn in different fonts, because the font files are not
finished yet, not because of problems in the drawing code.

Holger