Results 1 to 6 of 6

Thread: communication between c++ qt server with python django server

  1. #1
    Join Date
    Aug 2013
    Location
    India
    Posts
    44
    Thanks
    3
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default communication between c++ qt server with python django server

    hello everyone, I had developed a messaging application that is desktop based in c++ qt.
    But now i want to make it web based application.i want to use my existing server that is written in c++ with qt.
    and, for client i am using python (Django framework) but i dont have more idea how to communicate our clinet(i.e written in python django) to server (i.e written in c++ with qt).
    please give me some solution,if you have any idea.or,if you have other idea to make web based messaging application.you can share to me .

    Thanks..

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: communication between c++ qt server with python django server

    You need some way to communicate between the Python code and the C++ server, much like a web backend communicates with a database server, e.g. using a local socket connection.

    Another option could be to use a HTTP server library written in C or C++ and use that in the chat server to make it directly accessible through HTTP, e.g. http://stefanfrings.de/qtwebapp/index-en.html or https://github.com/nikhilm/qhttpserver

    Cheers,
    _

  3. #3
    Join Date
    Aug 2013
    Location
    India
    Posts
    44
    Thanks
    3
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: communication between c++ qt server with python django server

    our application is not only chat application ..
    in our application there are lots of feature like audio calling,video calling,messagin like whatsapp,gmail feature and so on....
    so, i have no more idea that http qtwebsocket will work on this.
    so we are moving on python django for client and server will be on c++ qt.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: communication between c++ qt server with python django server

    Not sure why you mention web sockets especially if you have already determined that it doesn't do what you need.

    Cheers,
    _

  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,712
    Thanks
    13
    Thanked 1,604 Times in 1,531 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: communication between c++ qt server with python django server

    The existing Qt client (user's machine) talks to any existing Qt server (server machine) through some channel, most likely a QTcpSocket Just make your PHP client (now on server machine) talk to the Qt server exactly the same way.

  6. #6
    Join Date
    Mar 2021
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: communication between c++ qt server with python django server

    Quote Originally Posted by prabhatjha View Post
    our application is not only chat application ..
    in our application there are lots of feature like audio calling,video calling,messagin like whatsappPlus,gmail feature and so on....
    so, i have no more idea that http qtwebsocket will work on this.
    so we are moving on python django for client and server will be on c++ qt.
    Hi is there a way to download this application which you are talking about in your post?
    Last edited by Edith; 4th March 2021 at 10:23. Reason: updated contents

Similar Threads

  1. Server Client communication compression
    By Qiieha in forum Qt Programming
    Replies: 4
    Last Post: 28th June 2012, 13:32
  2. Communication between Client Qt4 and Server in C
    By hormoz1989 in forum Qt Programming
    Replies: 3
    Last Post: 25th March 2011, 22:58
  3. server-client communication
    By sksingh73 in forum Newbie
    Replies: 2
    Last Post: 22nd June 2010, 03:15
  4. Qt-- Client Server communication problem
    By thisismyuname in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2010, 01:04

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.