Details
-
Bug
-
Resolution: Moved
-
P1: Critical
-
4.6.0
-
None
-
None
Description
Device: XM 5800
1. Automatic resize of QGraphicsWebView fails completely.
Code to create the first image:
QApplication app(argc, argv); QGraphicsScene scene; QGraphicsView view(&scene); QGraphicsWebView webView; scene.addItem(&webView); webView.load(QUrl("http://www.google.com")); view.showFullScreen(); app.exec();
2. If size is set to fullscreen there is small border on RHS that cannot be scrolled to.
added to first code:
view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); webView.resize(app.desktop()->screenGeometry().size());
3. Addition if scrollbars are not hidden from QGraphicsView we get double scrollbars but are able to access the RHS.
//view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); //view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);