Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to make FileDialog and select file to load in webview ?

How to make FileDialog and select file to load in webview ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qmlfilefiledialogwebview
5 Posts 3 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qjay
    wrote on 15 Jun 2016, 11:56 last edited by
    #1

    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 Webview

    Please if possible give me an example so that i can understand it .

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bharathi
      wrote on 16 Jun 2016, 04:40 last edited by
      #2

      Hi
      You have to start from here.
      http://doc.qt.io/qt-4.8/qt-webkit-previewer-example.html

      1 Reply Last reply
      1
      • K Offline
        K Offline
        karti gesar
        wrote on 16 Jun 2016, 04:42 last edited by
        #3

        ya it works......

        1 Reply Last reply
        1
        • Q Offline
          Q Offline
          Qjay
          wrote on 16 Jun 2016, 11:21 last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            Qjay
            wrote on 16 Jun 2016, 13:30 last edited by
            #5

            I just solved it myself (feels great ) . i used a property url to get url of file then assigned it to url of webview

            1 Reply Last reply
            0

            5/5

            16 Jun 2016, 13:30

            • Login

            • Login or register to search.
            5 out of 5
            • First post
              5/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved