Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, January 2008
QtWebKit frame rendering.


Message 1 in thread

Hello. I'm testing the QtWebKit module in a resource limited environment and I 
want to have a QGraphicsItem showing some html content.

Rendering is really easy by using QWebFrame::render. Thanks.
What's missing is some way (on QWebFrame or QWebPage I think) to get notified 
about exposed areas, so I can issue paint events on the GraphicsItem.

I already tested QWebView (::QWidget) over GraphicsView. It works but not as 
smoothly as my rendering-only GraphicsItem (currently using a timer to 
repaint the whole area itself).

Enrico



 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 icecube communication: progettazione e sviluppo siti internet, portali, e-commerce, servizi per la visibilità via Internet... il tuo business con noi cresce!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7351&d=4-1

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 2 in thread

On Friday 04 January 2008 15:56:31 Enrico Ros wrote:
> Hello. I'm testing the QtWebKit module in a resource limited environment
> and I want to have a QGraphicsItem showing some html content.
>
> Rendering is really easy by using QWebFrame::render. Thanks.
> What's missing is some way (on QWebFrame or QWebPage I think) to get
> notified about exposed areas, so I can issue paint events on the
> GraphicsItem.
>
> I already tested QWebView (::QWidget) over GraphicsView. It works but not
> as smoothly as my rendering-only GraphicsItem (currently using a timer to
> repaint the whole area itself).

Adding a notification signal to QWebPage (or QWebFrame) that is emitted 
whenever a certain area of the page/frame needs to be repainted is on our 
TODO list :)

Simon

Attachment:

Attachment: signature.asc
Description: This is a digitally signed message part.


Message 3 in thread

On Friday 04 January 2008 16:49:20 Simon Hausmann wrote:
> On Friday 04 January 2008 15:56:31 Enrico Ros wrote:
> > Hello. I'm testing the QtWebKit module in a resource limited environment
> > and I want to have a QGraphicsItem showing some html content.
> >
> > Rendering is really easy by using QWebFrame::render. Thanks.
> > What's missing is some way (on QWebFrame or QWebPage I think) to get
> > notified about exposed areas, so I can issue paint events on the
> > GraphicsItem.
> >
> > I already tested QWebView (::QWidget) over GraphicsView. It works but not
> > as smoothly as my rendering-only GraphicsItem (currently using a timer to
> > repaint the whole area itself).
>
> Adding a notification signal to QWebPage (or QWebFrame) that is emitted
> whenever a certain area of the page/frame needs to be repainted is on our
> TODO list :)

Nice to hear that! ;-) I just spotted some peliminary implementation on the 
webkit git. Thanks a lot.

Another addition that may complete the "frame rendering without a QWidget" is 
the possibility to scroll the frame (thus render it with an offset) or, 
better, change:
  QWebFrame::render( QPainter * painter, const QRegion & clip )
to
  QWebFrame::render( QPainter * painter, const QRect & sourceRect, const QRect 
& destRect = QRect() )
or something similar.

Btw: the API rocks!
Enrico Ros



 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 In REGALO 'Meravigliosa Creatura' la super hit di GIANNA NANNINI
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6615&d=8-1

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 4 in thread

On Tuesday 08 January 2008 12:34:09 Enrico Ros wrote:

> Nice to hear that! ;-) I just spotted some peliminary implementation on the
> webkit git. Thanks a lot.

Is it working for you? Do you see a need for event compression (like it is/can 
be done for QWidgets)?

kind regards
	holger

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx