[webkit-qt] QWebFrame contents size

Felipe Crochik felipe at crochik.com
Wed Jun 2 09:39:23 PDT 2010

I need to find out what is the "page" (minimum) size so I can resize the
control to fit this area. The issue is that if you "enlarge" the
QGraphicsWebView one time the QWebFrame resizes itself so when you go to a
different (smaller) page the contents size is still the previous "larger"

Right now what I do is resize the QGraphicsWebView control to a small size,
then use QWebFrame::contentsSize() to get what is the "minimum size" to show
ALL the contents and then resize the QGraphicsWebView again based on this

I can only assume there is a better way but couldn't find out.


More information about the webkit-qt mailing list