[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Plasma.WebView
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2010-01-29 19:49:44
Message-ID: 201001291149.45478.aseigo () kde ! org
[Download RAW message or body]
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
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic