Plasma.WebView
Aaron J. Seigo
aseigo at kde.org
Fri Jan 29 20:49:44 CET 2010
On January 29, 2010, Sinkov Vladimir wrote:
> Could someone give me an example of using Plasma.WebView especially if i
> want to open file on my hard disk? Please
in c++:
Plasma::WebView *webview = new Plasma::WebView(this);
webview->setUrl(pathToFile);
then add it to your layout somewhere.
note that setUrl takes a KUrl, but i believe QStrings get converted to a KUrl
automatically in this case
in javascript:
var webview = new WebView
webview.url = Url(pathToFile)
then add it to your layout somewhere.
the python/ruby versions probably look nearly identical to the c++ one.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
More information about the Plasma-devel
mailing list