Centered zoom in a qgraphicswebview
General and Desktop
5
Posts
2
Posters
2.3k
Views
1
Watching
-
I simply do :
@void MyWebView::centeredZoom(qreal delta)
{
webview->setTransformOriginPoint(webview->boundingRect().center());
webview->setScale(webview->scale() + delta);
}@It zooms centered but if I try to pan after a zoom I'm not able to reach the upper-left part of the webpage. Moreover the lower-right part is something out of the page.