[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: taking snapshot of the html page
From: Thomas =?iso-8859-1?q?L=FCbking?= <thomas.luebking () web ! de>
Date: 2009-04-18 15:39:50
Message-ID: 200904181739.50256.thomas.luebking () web ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Am Saturday 18 April 2009 schrieb Richard Moore:
> Thomas is correct, but there is a way to do it. Check what the
> rectange occupied by your HTML view is in global coordinates then grab
that's what i meant by xwdump, but as this requires the htmlview to be on top
of the window stack i'm not sure if this is what he wants. (martin: you can
try to perform a QWidget::window()->raise() before, usleep() some ms an grab
the root window)
i'd also (in case it's sufficient) suggest to search for a qxembedwidget
(QObject::findChildren<T>()) in the html view, just dump that region and copy
it into the QWidget::render'ed version.
as the content of flash windows is broken by definition, some pixel garbage
maybe doesn't hurt too much ;-P
Thomas
ps: i really don't like flash - in case you didn't notice ^_^
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'Segoe'; font-size:10pt; font-weight:400; \
font-style:normal;">Am Saturday 18 April 2009 schrieb Richard Moore:<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>> Thomas is correct, but there is a way to do it. Check \
what the<br> > rectange occupied by your HTML view is in global coordinates then \
grab<br> that's what i meant by xwdump, but as this requires the htmlview to be on \
top of the window stack i'm not sure if this is what he wants. (martin: you can try \
to perform a QWidget::window()->raise() before, usleep() some ms an grab the root \
window)<br> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>i'd also (in case it's sufficient) suggest to search for a \
qxembedwidget (QObject::findChildren<T>()) in the html view, just dump that \
region and copy it into the QWidget::render'ed version.<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>as \
the content of flash windows is broken by definition, some pixel garbage maybe \
doesn't hurt too much ;-P<br> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>Thomas<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>ps: \
i really don't like flash - in case you didn't notice ^_^</p></body></html>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic