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

List:       kde
Subject:    Re: [kde] Capturing screen image
From:       Kevin Gilbert <kev.gilbert () optusnet ! com ! au>
Date:       2004-08-07 22:50:02
Message-ID: 411559CA.7010503 () optusnet ! com ! au
[Download RAW message or body]

[Attachment #2 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks for the info - that's exactly what I needed!<br>
<br>
Kevin<br>
<br>
Kevin Krammer wrote:
<blockquote cite="mid200408071520.35243.kevin.krammer@gmx.at"
 type="cite">
  <pre wrap="">On Saturday 07 August 2004 14:05, Kevin Gilbert wrote:
  </pre>
  <blockquote type="cite">
    <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?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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 
size.
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 
the widget.

Cheers,
Kevin

  </pre>
</blockquote>
</body>
</html>


___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

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

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