[Kde-perl] [solved] QListBoxPixmap reimplementation problems
DUPUIS Arnaud
a.dupuis at infinityperl.org
Wed Sep 20 13:54:51 CEST 2006
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
More information about the Kde-perl
mailing list