[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Question about QScrollView::drawContentsOffset
From: Reginald Stadlbauer <reggie () troll ! no>
Date: 2000-02-21 20:10:07
[Download RAW message or body]
On Mon, 21 Feb 2000, Pascal Francq wrote:
> Hi,
>
> For the function:
> void QScrollView::drawContentsOffset ( QPainter * p, int offsetx, int offsety,int \
> clipx, int clipy, int clipw, int cliph ) Can someone tell me the difference \
> between (offsetx,offsety) and (clipx,clipy)
> My problem is this:
> I had create a QWidget to display some graphic. For that, I create a Bitmap so
> I can move my windows without to recalculate all the graph.
> Now, I handle graphes that are much bigger than the screen so I decided to use
> a "QScrollView", but I don't see how can I use the corresponding function and a
> bitmap.
I'd suggest to use the drawContents method instead of drawContentsOffset. The
you do something like
void MyScrollView::drawContents( QPainter *p, int cx, int cy, int cw, int ch )
{
p->drawPixmap( 0, 0, pixmap );
}
--
Reggie
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic