RESOLVED INVALID 35659
[Qt] QGraphicsWebView size is incorrect
https://bugs.webkit.org/show_bug.cgi?id=35659
Summary [Qt] QGraphicsWebView size is incorrect
Tor Arne Vestbø
Reported 2010-03-03 03:42:22 PST
This bug report originated from issue QTBUG-5306 http://bugreports.qt.nokia.com/browse/QTBUG-5306 --- Description --- Device: XM 5800 <p>1. Automatic resize of QGraphicsWebView fails completely.<br/> Code to create the first image:</p> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>QApplication app(argc, argv); QGraphicsScene scene; QGraphicsView view(&amp;scene); QGraphicsWebView webView; scene.addItem(&amp;webView); webView.load(QUrl("http://www.google.com")); view.showFullScreen(); app.exec(); </pre> </div></div> <p>2. If size is set to fullscreen there is small border on RHS that cannot be scrolled to.<br/> added to first code:</p> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); webView.resize(app.desktop()-&gt;screenGeometry().size()); </pre> </div></div> <p>3. Addition if scrollbars are not hidden from QGraphicsView we get double scrollbars but are able to access the RHS.</p> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>//view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); //view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); </pre> </div></div> --- Comments ---
Attachments
Jocelyn Turcotte
Comment 1 2010-03-17 05:30:48 PDT
See the original bug report for a test case and screenshots.
Steven Winship
Comment 2 2010-11-08 07:29:34 PST
in senerio 1 there is no parent child relationship between the view and webView therefore there should be no resize of the webView. in the other senerios there does seem to be a rendering or re-painting issue. I'm not seeing the right scroll bar, just a white stripe. Although sometimes the scroll bar shows up in the emulator when the mouse hovers over it. I'm looking into this. Seems to work fine on windows.
Jocelyn Turcotte
Comment 3 2014-02-03 03:10:15 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.
Note You need to log in before you can comment on or make changes to this bug.