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. QWebElement input click()
Forum Updated to NodeBB v4.3 + New Features

QWebElement input click()

Scheduled Pinned Locked Moved Qt WebKit
6 Posts 3 Posters 6.1k 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.
  • B Offline
    B Offline
    bunjee
    wrote on last edited by
    #1

    Greetings Trolls,

    Just a quick post about Qt documentation :

    http://doc.qt.nokia.com/4.7-snapshot/qwebelement.html
    @QWebElement document = frame->documentElement();
    /* Assume that the document has the following structure:

         <form name="myform" action="submit_form.asp" method="get">
             <input type="text" name="myfield">
             <input type="submit" value="Submit">
         </form>
    
      */
    
     QWebElement button = document.findFirst("input[type=submit]");
     button.evaluateJavaScript("click()");@
    

    I had to replace "click()" by "this.click()" to make it work on my side.

    Thanks.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mohsen
      wrote on last edited by
      #2

      so what's the aim of creating this topic?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        A bug report on http://bugreports.qt.nokia.com would be the best; not all Trolls read Qt DevNet ;-)

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bunjee
          wrote on last edited by
          #4

          I'll take a look at this.

          I did not know you could even report documentation glitches :D !

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            Sure you can. In the Qt project (QTBUG) there is a Documentation component to choose for you :-)

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bunjee
              wrote on last edited by
              #6

              Done: http://bugreports.qt.nokia.com/browse/QTBUG-17029

              Thanks :).

              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