Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QtWebKit html form file upload
Forum Updated to NodeBB v4.3 + New Features

QtWebKit html form file upload

Scheduled Pinned Locked Moved Qt WebKit
6 Posts 3 Posters 5.3k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    szallol
    wrote on last edited by
    #1

    how to submit programmatically a html form with file upload input?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Look into QNetworkAccessManager, and check out the post method.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        szallol
        wrote on last edited by
        #3

        But i'm interested in html form completion(file input field) in qtwebkit for web application testing.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Ah, but that is not what you implied (at least, to me) before. Now that I re-read your question, it could have meant that from the start (especially if you considder the forum it was posted in).

          I guess you can do what you want by using javascript. See QWebFrame::evaluateJavaScript

          1 Reply Last reply
          0
          • S Offline
            S Offline
            szallol
            wrote on last edited by
            #5

            The text fields and the submit button are ok, but with javascript how can i fill out the file upload field(<input type="file"...>)?

            1 Reply Last reply
            0
            • P Offline
              P Offline
              ProudChild
              wrote on last edited by
              #6

              this question would help me a lot as well, if someone knows how to set a file in a input field and then submit it to the server would be nice.

              1 Reply Last reply
              0

              • Login

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