<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<body bgcolor="#ffffff" text="#000000">
Thanks for the info - that's exactly what I needed!<br>
Kevin Krammer wrote:
<pre wrap="">On Saturday 07 August 2004 14:05, Kevin Gilbert wrote:
<pre wrap=""> Yes, its from my own program - but my KDE skills aren't that good, I'm
still learning. So, what keywords should I search for in the documentation?
I assume you have overwritten drawContents to draw into your ScrollView.
Usually this method is called from paintEvent by the ScrollView class itself,
but you can call it as well.
You first create a QPixmap with contentsWidth() and contensHeight() as its
Then you create a QPainter on this pixmap (QPixmap is a QPaintDevice).
Then you pass this painter to drawContents and use 0, 0, contentsWidth,
contentsHeight as the clipping parameters.
After drawContents returns, you QPixmap contains everything usually painted on