Results 1 to 4 of 4

Thread: creating a login for my chat application

  1. #1
    Join Date
    Sep 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default creating a login for my chat application

    hello !
    I want to add a login window that appears when a client want to open the chat application ,it contains 2 field one for username and an other for password
    so the user can connect if he allready has an account otherwise he create it . I want to know how can i do this ? and how to save the list of users and accounts ? can I use SQLITE ?
    Please help me !
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: creating a login for my chat application

    The question is so general that I don't know what kind of answer you expect. Yes, you can store your login data in sqlite database if you don't need to access it from another machine. You can also store login data in QSettings object. However both these approaches operate on local data so there is no way of checking if the user already has an account or not without contacting the chat system infrastructure. Thus a more plausible approach seems to be to use whatever your chat system uses for communication.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: creating a login for my chat application

    what can I use to check if the user already has an account or to access to the list of users in the database from any machine. I use the client/server architecture and Tcp protocol.

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: creating a login for my chat application

    Just think how any Messenger programs works,,, gather what is required for such an application.
    You would probably need server, database, global IP,,, and rest your logic to search / identify user.

Similar Threads

  1. Android Chat Application Qt ?
    By toufic.dbouk in forum Qt for Embedded and Mobile
    Replies: 29
    Last Post: 15th April 2021, 12:55
  2. Develop an Chat Application as use QT
    By phuong_90 in forum Qt Programming
    Replies: 2
    Last Post: 5th November 2011, 03:04
  3. Chat application using web services
    By user_mail07 in forum Qt Programming
    Replies: 2
    Last Post: 4th April 2011, 18:52
  4. How to build a Chat application in Qt??
    By Gokulnathvc in forum Newbie
    Replies: 6
    Last Post: 23rd March 2011, 07:48
  5. Creating Login page
    By yuvaraj.yadav in forum Newbie
    Replies: 2
    Last Post: 13th April 2009, 11:37

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.