[webkit-qt] QWebFrame contents size
Antonio Gomes (:tonikitoo)
tonikitoo at gmail.com
Wed Jun 2 09:58:55 PDT 2010
Hi Felipe.
Maybe this property helps you: resizesToContents
http://doc.trolltech.com/main-snapshot/qgraphicswebview.html#resizesToContents-prop
On Wed, Jun 2, 2010 at 12:39 PM, Felipe Crochik <felipe at crochik.com> wrote:
> 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"
> one.
>
> 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
> information.
>
> I can only assume there is a better way but couldn't find out.
>
> Thanks,
> Felipe
>
>
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>
--
--Antonio Gomes
More information about the webkit-qt
mailing list