Bug 29876 - [Qt] Add QWebFrame::setHtml(QIODevice *) overload
Summary: [Qt] Add QWebFrame::setHtml(QIODevice *) overload
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: Qt
Depends on: 31115 31552
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-29 07:55 PDT by Tor Arne Vestbø
Modified: 2009-11-25 01:28 PST (History)
3 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ø 2009-09-29 07:55:48 PDT
This bug report originated from issue QTBUG-2911
http://bugreports.qt.nokia.com/browse/QTBUG-2911

--- Description ---

Currently QWebFrame has a setHtml(QString), but an overload for QIODevice would be cool.
Comment 1 Jędrzej Nowacki 2009-11-24 09:11:55 PST
This is change for 4.7.

What is the use case? For a small file it is definitely better to use the QString and the setContent(), for a big file the load(QUrl) method should be enough.

The only use case I found is when a page is created on the runtime and it is big. So big that it is worth to stream it. Am I right?
Comment 2 Simon Hausmann 2009-11-25 01:28:08 PST
I agree with Jędrzej. setHtml() is a synchronous API that exists for convenience.

It is not suited for streaming (one potential use-case for QIODevice)