Bug 35659
| Summary: | [Qt] QGraphicsWebView size is incorrect | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tor Arne Vestbø <vestbo> |
| Component: | Platform | Assignee: | Steven Winship <steven.winship> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | jturcotte, steven.winship |
| Priority: | P2 | Keywords: | Qt |
| Version: | 528+ (Nightly build) | ||
| Hardware: | S60 Hardware | ||
| OS: | S60 3rd edition | ||
Tor Arne Vestbø
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(&scene);
QGraphicsWebView webView;
scene.addItem(&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()->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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jocelyn Turcotte
See the original bug report for a test case and screenshots.
Steven Winship
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
=== 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.