[solved] QListBoxPixmap reimplementation problems
DUPUIS Arnaud <[email protected]> Wed, 20 Sep 2006 13:54:51 +0200
| Newsgroups | gmane.comp.kde.devel.perl |
|---|---|
| Organization | Infinity Perl |
| Message-ID | <[email protected]> |
Hello again, After a try (a complete random one) i found the solution : The problem was here : my $r = this->listBox()->itemRect(this); I misunderstood the way drawRect() and fillRect() took the coordinates. just puting that : my $r = $painter->window(); did the job. And to fix little problem with the rectangle I replace the original call by : $painter->drawRect($r->x(), $r->y(), $r->width(),32); # the height was not accurate with $r->height() Good day Arnaud DUPUIS