Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Simple socket client inside app
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Simple socket client inside app

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 2.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.
  • O Offline
    O Offline
    ommz
    wrote on last edited by
    #1

    I want to send the contents of a QLineEdit to a php web app that is listening on that port. Someone please show me a simple code snippet of the client source code

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      You should use "QNetworkAccessManager":http://qt-project.org/doc/qt-4.8/QNetworkAccessManager.html instead of sockets.

      Read about it and if you will have questions, ask here.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        ommz
        wrote on last edited by
        #3

        Thainks a tonne. It works!!

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tucnak
          wrote on last edited by
          #4

          @
          Thread * current = devnet->currentThread();
          QString title = current->title();
          title.prepend("[SOLVED] ");
          current->setTitle(title);
          current->update();
          @

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mlong
            wrote on last edited by
            #5

            In other words, please be sure and edit the title of the thread to add [Solved] to the beginning of the title. Thanks ever so much!

            Software Engineer
            My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tucnak
              wrote on last edited by
              #6

              [quote author="mlong" date="1340205643"]In other words, please be sure and edit the title of the thread to add [Solved] to the beginning of the title. Thanks ever so much!
              [/quote]

              Have you thought about it? Can moderators add this tags (SOLVED)?

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mlong
                wrote on last edited by
                #7

                Moderators can edit the post titles, but that's really the task of the thread owner. ;-)

                Software Engineer
                My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                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