Results 1 to 20 of 23

Thread: Is Qt for GUI only?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    128
    Thanks
    2

    Default Re: Is Qt for GUI only?

    Quote Originally Posted by Zlatomir View Post
    I really don't want to disappoint you, but those are only basic stuff.
    Anyway, if you learned and understood OOP topics, you should understand Qt framework pretty fast.

    But don't hurry, always remember that understanding is the key to programming, so don't limit yourself to just tutorials (since tutorial usually don't offer that many explanations): read books, articles, documentation, forums (i have learned a lot about C++ and Qt from forums) etc... and always try to understand the things you read.

    Also it may take longer to get familiar with the "GUI stuff" (since you have done only console applications, i was is the same situation, only standard C++(and STL) for one year, and then Qt as the first GUI framework)
    This link can help with other links to concepts used in Qt framework, if you didn't understood some topic in a book you can browse there for some more information.

    Here you can find my opinion about Foundations of Qt development by Johan Thelin (read the whole topic since you have more books recommendations there)

    And don't forgot about memory management, it's a very important C++ topic so it's also very important Qt topic, even if Qt has some mechanisms that help you with that, you still need understand memory management.

    Happy learning
    What else in your opinion should I learn in order to be ok with Qt...(althought from the moment I started,I don't meet any syntax difficulties,only some complexities of Qt flow.)?
    And with "memory managment",you mean memory allocation?

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

    Default Re: Is Qt for GUI only?

    Pointers, classes, inheritance, virtual methods, static methods, overloading and overriding, const methods, casting, basics of templates. That's the least you should know and understand to feel at least a bit comfortable using Qt. Otherwise you'll be struggling all the time.
    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
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Is Qt for GUI only?

    Quote Originally Posted by BumbleBee
    And with "memory managment",you mean memory allocation?
    Not only that, also difference between stack and heap storage, deletion, life-time of objects (including the life of the pointer used for allocating object on heap), memory leaks...
    And of course the things Qt framework add to help you manage this, i mean the parent-children relationship.
    With Qt classes (most likely the ones for GUI) you will extensively use heap allocation and you will see that you don't need to have a delete statement for each call of new that is because the parent will delete it's children.

    For other things you should know, i don't know, you will probably find a lot of them, just go along with the book/books, tutorials, documentation, articles and remember that understanding is what you are after, not just "hack" a thing that somehow magically works (or worse just looks like it works)

    Whenever you don't understand something, search the documentation site, this site, and if you still have questions, just create a new topic

  4. #4
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Is Qt for GUI only?

    Hi,

    If you want to write a GUI, and if you plan to use C++, then Qt is definitively your number 1 choice. It is free, and it is much easier to use than any other C/C++ toolkit. Just make sure to use QtCreator.

    Don't let people scare you too much with the things you should know. You know the basics of OOP and C++, and you are obviously willing to learn more. So you'll be able to do quite a lot already with what you know now, and the rest you will learn along the way.

    Best regards,
    Marc

    P.S. As mentioned before, Qt also has easy to use libraries to do any non-GUI stuff that you would like to do.
    P.P.S. Borland C++ Builder is also very good, but it isn't free.

  5. #5
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Is Qt for GUI only?

    oops,ifs,typedef,structures,classes,inheritance,po lymorphism,pointers,functions....)
    Just make sure to use QtCreator
    I'll rather say: "Just make sure you know why to use QtCreator".
    Know the tools. Learn how to use qmake, gdb, make. Learn the basics of STL. Try to make some serious use of all the stuff you've mentioned.
    And don't think that "gui programming" is some kind of "higher level" of programming in general. The fact that you can do some gui don't makes you a better programmer

  6. #6
    Join Date
    Jan 2011
    Posts
    128
    Thanks
    2

    Default Re: Is Qt for GUI only?

    Thank you guys for all the replies!

    wysota:The only thing I don't know is templates(never found a good tut.)
    Zlatomir :Yeah,I see Qt used pointers and memory managment all the time..however I am not so good with this...:/

  7. #7
    Join Date
    Nov 2010
    Location
    Budapest, Hungary
    Posts
    125
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is Qt for GUI only?

    The fact that you can do some gui don't makes you a better programmer
    yeah, first I was slighly dissappointed when I realised... But at least I got a little bit bigger in mum's eyes...
    Szilvi

  8. #8
    Join Date
    Sep 2011
    Posts
    21
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: Is Qt for GUI only?

    You can search for and see if you can down load:

    Advanced Qt Programming Creating Great Software with C++ and Qt 4 by Mark Summerfield
    I have enjoyed Mark's book on using pyQT with QT. He will leave gaps, though that you will have to dig out on your own.

    But, I think most authors have a few "blind spots".

    Foundations of Qt Development by Johan Thelin
    Both of these were available as .pdfs

    Most of all "Be Patient" both with yourself and those who try to help.

    Most (but not all) of the questions I've had about using pyQT have been in Mark's book.

    And, I would have saved myself a lot of grief if I'd had the time (project deadlines and all that) to actually read it through and done his examples.

    This is going to take time...

    There is a lot to absorb...

    But, don't try to cram...

    Take small bites and digest them slowly, give your brain a chance to collate the material and maake some connections...

    Very few people can read something from a book and immediately turn around and apply it, properly.

    Mike Sr.

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.