How to make FileDialog and select file to load in webview ?
Solved
QML and Qt Quick
-
wrote on 15 Jun 2016, 11:56 last edited by
Hey guys , i want to make a simple QML file which will open a filedialog box and user will select the file that needs to be loaded .
Once the user selects the file (HTML file ) i want it to be loaded in WebviewPlease if possible give me an example so that i can understand it .
-
wrote on 16 Jun 2016, 04:40 last edited by
Hi
You have to start from here.
http://doc.qt.io/qt-4.8/qt-webkit-previewer-example.html -
wrote on 16 Jun 2016, 04:42 last edited by
ya it works......
-
wrote on 16 Jun 2016, 11:21 last edited byThis post is deleted!
-
wrote on 16 Jun 2016, 13:30 last edited by
I just solved it myself (feels great ) . i used a property url to get url of file then assigned it to url of webview
5/5