Results 1 to 4 of 4

Thread: Qt network step by step tutorial

  1. #1
    Join Date
    Jul 2012
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt network step by step tutorial

    Hello. I need to make application which could connect with itself:

    (on my pc) (other pc)
    [myapp] <-- --> [myapp]

    I've never wrote anything using qtnetwork so I need something really simple, first network app, just creating empty server, because I feel quite lost in tons of lines from advanced network applications. Does someone know good page/tutorial where I could find something like this? Because now I even can't listen from new tcpserver and I even don't know if it's natural.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Qt network step by step tutorial

    The documentation contains simple examples.

  3. #3
    Join Date
    Jul 2012
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt network step by step tutorial

    Maybe it's good idea, and one more question, If I want make situation like I explained above, Can I make my program server and client at the same time? Or how can I establish communication between 2 exactly the same applications?

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Qt network step by step tutorial

    There are lots of different ways you can communicate between two instances of the same program. One of them, a network connection, being one of the most used ones.

    You can have a client and a server in the same program without any problem. You should try to create some basic flowchart or diagram or whatever to find out how you can implement this. There are different ways to do this. Each with advantages and disadvantages.

Similar Threads

  1. Replies: 4
    Last Post: 23rd July 2012, 21:09
  2. Qt Creator Debugging step by step through else rich code does not work
    By Terjoqu in forum Qt Tools
    Replies: 1
    Last Post: 11th March 2010, 22:44
  3. learn how to install QT with msvc2005 step by step
    By coder1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 20th December 2007, 20:56
  4. Video Tutorials or step by step guides?
    By Dumbledore in forum Newbie
    Replies: 2
    Last Post: 10th October 2007, 09:33
  5. Step by Step MySQL Plugin... what's next step?
    By chaosgeorge in forum Qt Programming
    Replies: 20
    Last Post: 5th November 2006, 16:32

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.