Results 1 to 14 of 14

Thread: new user

  1. #1
    Join Date
    Sep 2010
    Location
    Bangalore
    Posts
    169
    Thanks
    59
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Unhappy new user

    hi!!!!!!! i'm completely new to Qt programming. Previously i learnt only c++, nothing else. I know hardly some basics of Qt, but now i have to write a Qt programme on server client communication using serial port(RS-232), (i.e on the server part a database should exist and client should be able to access that database),,,, i even have very less idea on this ports, i.p.addresses and their basics. When my condition is this i have been directly asked to write such a prog. So, can someone help me, please?????? I'm totally confused,,,,,,, someone help,,,,,,,,,,,

  2. #2
    Join Date
    May 2010
    Location
    slovakia
    Posts
    47
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Maemo/MeeGo

    Default Re: new user

    first look at networking examples... later ask specific questions what you dont understand..

  3. #3
    Join Date
    Sep 2010
    Location
    Bangalore
    Posts
    169
    Thanks
    59
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default

    thank you for replying,,,,,,,,,,,,i will try for it,,,,,,,,,,actually this thing is completely new to me,,,,,,,,,,,i have read that fortune client and server example,,,,,but i'm unable to understand what is happening where,,,,,,,,,which syntaxes are doing what??????? that's my exact problem- fully confused,,,,,,,,,,,

    so if you can help in some regarding this,,,,,,,,,that would really be a great relief for me,,,,,,,,,,, waiting for help-------------------------
    Last edited by wysota; 16th September 2010 at 15:17.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: new user

    What do you expect? Do you have any specific question? On a general "how does it work" we can hardly answer since then we had to explain how networks normally work...

  5. #5
    Join Date
    Sep 2010
    Location
    Bangalore
    Posts
    169
    Thanks
    59
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: new user

    yaa,,,,,,,,,,,,you are right. It's actually "how does it work" question ,,,,,,,actually,,the assignment that has been given to me needs to be done now. Had i got some more time i would have taken some time to understand the basic Qt programming and functions of various classes. But though i'm new i still have been assigned directly this work. That is my problem. Is there any way that you could help me or guide me???????

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

    Default Re: new user

    I think the problem is not that you don't understand Qt network programming but rather that you don't understand network programming in general. Maybe you should first read a bit about networking in general (ask your favourite web search engine about it) and only then focus on programming.
    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.


  7. #7
    Join Date
    Sep 2010
    Location
    Bangalore
    Posts
    169
    Thanks
    59
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: new user

    maybe,,,,,,,,,but since Qt is new to me i'm confused with those various classes, different syntaxes. Any way thanks for replying, i know the problem that i'm facing is obvious for any new comer to Qt, the only problem is shortage of time,,,,,,,i would appreciate if you would help me regarding this,,,,,,,,,,

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

    Default Re: new user

    Quote Originally Posted by sattu View Post
    maybe,,,,,,,,,but since Qt is new to me i'm confused with those various classes, different syntaxes.
    As I said, your problem is not lack of Qt skills. This is not a place to teach you about networking.

    the only problem is shortage of time
    So who gave you this assignment, when was it given to you and what is your deadline?
    ,,,,,,,,,,
    Please stop using commas like that, it's very rude.
    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.


  9. #9
    Join Date
    May 2010
    Location
    slovakia
    Posts
    47
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Maemo/MeeGo

    Default Re: new user

    you have to read

    http://beej.us/guide/bgnet/output/ht...age/index.html

    and then you're ready to go

  10. The following user says thank you to daemonna for this useful post:

    sattu (17th September 2010)

  11. #10
    Join Date
    Sep 2010
    Location
    Bangalore
    Posts
    169
    Thanks
    59
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default

    oh! I'm extremely sorry for using those commas. Regarding the assignment, it was given to me 2 days back. actually now i'm in a R&D company and here every thing is going so fast, though i don't know the deadline, still i feel they may ask me at any time to show my progress as they have already asked me once. So, i'm confused as to how to write the server-client programme without having a minimum grip on Qt programming. well i'm trying for it, let me see, where i land up.

    extremely thanks thanks for the link. I think that s surely going to help me. Let me start with it. Thanx once again.
    Last edited by wysota; 17th September 2010 at 07:02.

  12. #11
    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: new user

    Quote Originally Posted by sattu View Post
    though i don't know the deadline, still i feel they may ask me at any time to show my progress as they have already asked me once.
    Ask for it. If they don't want to give one, you give them one.
    If they don't want to organise meetings, you do it.
    In other words, do not get stressed out because incompetent people can't organise the work and put all the responsibility on you. You take control.

    As for the server-client programming:
    1. Keep it easy. Do NOT start with threading, you will not need it.
    2. Use the examples that come with Qt as a starting point
    3. Client-server communication can be very basic (depending on the needs of course). The server manages all the client connections. The server and the client exchange messages. This can all be done in plain text (not if you need to send binary data).

    Once you get started with the examples (and try to understand them), the rest will not be that difficult.

  13. The following user says thank you to tbscope for this useful post:

    sattu (17th September 2010)

  14. #12
    Join Date
    Sep 2010
    Location
    Bangalore
    Posts
    169
    Thanks
    59
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: new user

    thanks tbscope. Can you suggest me exactly which examples to start with and if possible some useful links related to it. Remember i'm at very basic level of Qt leave alone server client programming. That would be of great help to me.

  15. #13
    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: new user

    Yes,

    http://doc.qt.nokia.com/4.6/network-fortuneserver.html
    http://doc.qt.nokia.com/4.6/network-fortuneclient.html

    I will answer specific questions if you have them, but not general questions. This means, a question like:

    "I do not understand what nextPendingConnection() does, can you explain it?"
    Will only get answered with a link to the documentation. Questions like this are already answered in the documentation.

    "I tried to create a server that handles multiple clients but I got stuck. I already tried ... and it does not work."
    That is a question that is more specific and shows that you already did try it yourself. Such a question I'm happy to answer.

  16. The following user says thank you to tbscope for this useful post:

    sattu (17th September 2010)

  17. #14
    Join Date
    Sep 2010
    Location
    Bangalore
    Posts
    169
    Thanks
    59
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: new user

    o.kie,, i will see to it. But if i get stuck off any where then do help me. Actually i have read that example and have also runned it checking for the fortunes being sent from server to client. But i will read it once again.

Similar Threads

  1. New user of QT
    By alvarovac in forum Newbie
    Replies: 2
    Last Post: 1st March 2010, 19:27
  2. Get user name
    By klipko in forum Newbie
    Replies: 5
    Last Post: 19th December 2008, 12:07
  3. Replies: 2
    Last Post: 27th November 2008, 10:16
  4. User recognition
    By eu.x in forum Qt Programming
    Replies: 4
    Last Post: 13th March 2007, 03:16

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
  •  
Qt is a trademark of The Qt Company.