Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. how to implement a chat application?
QtWS25 Last Chance

how to implement a chat application?

Scheduled Pinned Locked Moved QML and Qt Quick
chattingmessagewebsocket
8 Posts 4 Posters 3.4k 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.
  • V Offline
    V Offline
    vishnu
    wrote on 28 Sept 2015, 11:20 last edited by
    #1

    Hello,
    so far all i did was using Qtcpsocket and Qtcpserver. But i don't have much idea on how to implement it with real time. When i googled for chat application in Qt . I have got few results like using websockets. should i need to buy managed websockets ? In order to fullfill my requirements ? All i need is to implement a chatting feature between the users in my App. Can any one please throw me some hints on how to do that? Thanks a lot

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clogwog
      wrote on 29 Sept 2015, 13:18 last edited by clogwog
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 29 Sept 2015, 20:59 last edited by
        #3

        Hi,

        You have an example in Qt's sources: Network Chat Example

        Otherwise you'll have to give more details about your use case.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        V 1 Reply Last reply 30 Sept 2015, 08:03
        0
        • S SGaist
          29 Sept 2015, 20:59

          Hi,

          You have an example in Qt's sources: Network Chat Example

          Otherwise you'll have to give more details about your use case.

          V Offline
          V Offline
          vishnu
          wrote on 30 Sept 2015, 08:03 last edited by vishnu
          #4

          @SGaist
          Thanks for the reply. If you're in a local network its fine but imagine an app in apple store and android store which is downloaded by millions of people. How do I make connection between them who are in different location and different network.Also, i have to host the database some where right or will the app store handle it for me? Assume like facebook messenger without calling feature. Is something not clear ? Let me know. Thanks

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 30 Sept 2015, 22:17 last edited by
            #5

            Before starting to re-implement such a feature from the ground. Are you trying to create a new app like Viber or WhatsApp or is it a small feature in your application ? If it's the second solution, you should rather take a look at the existing protocol available like XMPP. There's e.g. QXMPP

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            V 1 Reply Last reply 2 Oct 2015, 08:26
            0
            • S SGaist
              30 Sept 2015, 22:17

              Before starting to re-implement such a feature from the ground. Are you trying to create a new app like Viber or WhatsApp or is it a small feature in your application ? If it's the second solution, you should rather take a look at the existing protocol available like XMPP. There's e.g. QXMPP

              V Offline
              V Offline
              vishnu
              wrote on 2 Oct 2015, 08:26 last edited by
              #6

              @SGaist
              No i am not trying to create app like viber or whatsapp. It is a just a small feature in my app. i have to show users near to them, i hope i can do it with positioning. Then, they need to communicate between them through instant messaging.
              Thanks a lot for your example. Iooks like what i need. But before getting started. I would your advice like how exactly it works? what kind of server and hosting i need to buy to support QXMPP? since it is part of my application , will it be a complex application to develop using Qt? Thanks a lot..waiting for your advice

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 2 Oct 2015, 21:49 last edited by
                #7

                In that case the QtWebSocket module is indeed a good starting point

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Allisonwilliam
                  wrote on 17 Dec 2024, 11:34 last edited by
                  #8
                  This post is deleted!
                  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