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. [SOLVED]Completing forms and submit buttons
QtWS25 Last Chance

[SOLVED]Completing forms and submit buttons

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

    Bonjour!
    My name is Mihai Ionut.
    I would like to know how to complete forms on a website and using butons for submiting the data that i inserted on those forms using QTWebkit and the QtNetwork Module.A tutorial,book would help me also.I like to learn new things and I like programing.I am making my own app that connects to a website (tribalwars.net) and login there.Your help is needed!

    1 Reply Last reply
    0
    • I Offline
      I Offline
      imahgin
      wrote on last edited by
      #2

      You can start here: "http://developer.qt.nokia.com/doc/qt-4.8/webkit-formextractor.html":http://developer.qt.nokia.com/doc/qt-4.8/webkit-formextractor.html

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mr.FreakyJo
        wrote on last edited by
        #3

        If you could write a login function on that site would be a huge help.I know C++ and a little Qt but I have no knowledge on how to send a Http post request to login there.The form of the webpage login area is like this :
        @<form action="index.php?action=login&server_list=1" method="post" id="login_form" >
        <div>
        <label for="user">
        <strong >Nume de utilizator:</strong>
        <span >
        <input id="user" name="user" class="text" type="text" value=""
        onkeydown="if((e=window.event||event) && e.keyCode == 13) $('#login_form').trigger('submit');"/>
        </span>
        </label>
        <label for="password">
        <strong >Parola:</strong>
        <span >
        <input name="clear" type="hidden" value="true" />
        <input id="password" name="password" class="text" type="password"
        onkeydown="if((e=window.event||event) && e.keyCode == 13) $('#login_form').trigger('submit');"/>
        </span>
        </label>

        <div id="js_login_button">
        <a href="#" class="login_button">
        <span class="button_left"></span>
        <span class="button_middle">Login</span>
        <span class="button_right"></span>
        </a>
        </div>

                <br style="clear:both;"/>
                <label for="cookie" >
                    &lt;input id="cookie" type="checkbox" name="cookie" value="true"  /&gt;
         Login permanent
                </label>
                <p><a href="http://www.triburile.ro/lost_pw.php">Parola uitată/modificare</a></p>
                        </div>
        &lt;/form&gt;@
        
        1 Reply Last reply
        0
        • K Offline
          K Offline
          KA51O
          wrote on last edited by
          #4

          something like "this":http://developer.qt.nokia.com/forums/viewthread/10771/ ?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mr.FreakyJo
            wrote on last edited by
            #5

            Yes something like that.But i couldn't make that work on my website.I'm too much of a noob.After I login I have to complete other forms too but if I have the login I can figure it out from that.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mr.FreakyJo
              wrote on last edited by
              #6

              Modified the code and now I can login.A link to a more detailed manual for the webkit and QtNetwork or for a book that explains this would be a huge help now.Thank you for helping me!

              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