[prev in list] [next in list] [prev in thread] [next in thread]
List: konq-e
Subject: taking a snapshot of konqueror embedded
From: "Yu Lei" <tim_lei () hotmail ! com>
Date: 2002-08-24 5:43:07
[Download RAW message or body]
<html><div style='background-color:'><DIV>
<DIV>
<DIV>Hello Experts,</DIV>
<DIV> </DIV>
<DIV> I'm currently working on a 3D web browser project \
and I need to take a snapshot of the rendering of konqueror embedded and map the \
snapshot onto a 3D plane. I used the qt library function grabWindow() \
in drawContents() of khtmlView class and I was able to take a snapshot of the \
window. However, if there is another window on top of the konqueror embedded, the \
snapshot would mess up. So I tried to use qt grabWidget() function, but it never \
worked out. During runtime, grabWidget function always tells me that I have bad \
memory allocation. This is how I called grabWindow() inside of drawContents() of \
khtmlView class</DIV> <DIV> </DIV>
<DIV>drawContents(..........)</DIV>
<DIV>{...................</DIV>
<DIV> .................//konqueror embedded code</DIV>
<DIV> QPixmap newPic = QPixmap::grabWidget(this);//this line throws exception in \
runtime</DIV> <DIV>........//saving the pixmap to a bmp</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>I'm just wondering if you experts could help me to take a snapshot of \
the k-embedded with the grabWidget function. Thanks a lot!!!</DIV> <DIV> </DIV>
<DIV>Tim</DIV></DIV></DIV></div><br clear=all><hr>Join the world’s largest e-mail \
service with MSN Hotmail. <a href='http://g.msn.com/1HM1ENUS/c157??PI=44364'>Click \
Here</a><br></html> _______________________________________________
konq-e mailing list
konq-e@mail.kde.org
http://mail.kde.org/mailman/listinfo/konq-e
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic