[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>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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&nbsp;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&nbsp;grabWindow() inside of drawContents() of \
khtmlView class</DIV> <DIV>&nbsp;</DIV>
<DIV>drawContents(..........)</DIV>
<DIV>{...................</DIV>
<DIV>&nbsp; .................//konqueror embedded code</DIV>
<DIV>&nbsp;QPixmap newPic = QPixmap::grabWidget(this);//this line throws exception in \
runtime</DIV> <DIV>........//saving the pixmap to a bmp</DIV>
<DIV>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm just wondering if&nbsp;you experts&nbsp;could help me to take a snapshot of \
the k-embedded with the grabWidget function. Thanks a lot!!!</DIV> <DIV>&nbsp;</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