Bug 35659 - [Qt] QGraphicsWebView size is incorrect
Summary: [Qt] QGraphicsWebView size is incorrect
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: S60 Hardware S60 3rd edition
: P2 Normal
Assignee: Steven Winship
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2010-03-03 03:42 PST by Tor Arne Vestbø
Modified: 2014-02-03 03:10 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tor Arne Vestbø 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 ---
Comment 1 Jocelyn Turcotte 2010-03-17 05:30:48 PDT
See the original bug report for a test case and screenshots.
Comment 2 Steven Winship 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.
Comment 3 Jocelyn Turcotte 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.