[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    clipRegion(QPainter::CoordPainter) return device coord
From:       lorthiois thierry <lor.thi () libertysurf ! fr>
Date:       2002-02-01 20:37:45
[Download RAW message or body]

Hi,

here the test case:

mPainter.setWindows(-888, -907, 1781, 2203);
QRegion newRegion(-888, -906, 1778, 2198);
mPainter.setClipRegion( region, QPainter::CoordPainter );
region = mPainter.clipRegion( QPainter::CoordPainter );
r1 = region.boundingRect();
fprintf(stderr, "clipping region : (%d, %d)  (%d, %d)\n", r1.left(), r1.top(), 
r1.width(), r1.height() );

here the result:
clipping region : (0, 0)  (242, 300)

(the output depend of the size of the widget)

thank
thierry

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic