Results 1 to 14 of 14

Thread: Why should I learn Qt?

  1. #1
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Why should I learn Qt?

    Qt is used for creating a GUI, is that all? Or there is something in Qt beyond creating a button, which makes it worth a try?

    What are the important "uses" of Qt?

    For what reasons you would prefer Qt over anything else?


    In need of enlightenment.

  2. #2
    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: Why should I learn Qt?

    Qt is used for creating a GUI, is that all? Or there is something in Qt beyond creating a button, which makes it worth a try?
    Qt has built-in cross-platform support for databases, multithreading, networking, xml, unit testing, opengl, scripting, multimedia, ...
    I think the answer is simple
    For what reasons you would prefer Qt over anything else?
    Qt is the most comfortable and intuitive C++ framework I've ever used.

  3. The following user says thank you to stampede for this useful post:

    TheIndependentAquarius (20th September 2011)

  4. #3
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: Why should I learn Qt?

    Thanks for replying.
    Quote Originally Posted by stampede View Post
    Qt has built-in cross-platform support for databases, multithreading, networking, xml, unit testing, opengl, scripting, multimedia, ...
    When you talk about built in support for multithreading and networking, how exactly is that different from writing your own "thread programs" and "socket programs".
    I mean, in both the sockets and threads, you need to write all the code of creation etc. be it in normal C++, or through Qt!
    Isn't it?

    Am I missing some point?

  5. #4
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Why should I learn Qt?

    In C++ you have to write different code for Linux and Windows. In Qt you write the code only once.

  6. The following user says thank you to nish for this useful post:

    TheIndependentAquarius (20th September 2011)

  7. #5
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: Why should I learn Qt?

    Thanks nish, that was helpful, and that's the meaning of being cross platform.


    Added after 4 minutes:


    So, in all now, "Portability" is one reason for using Qt, besides creating buttons. Any other reasons which any one can elaborate on?
    Last edited by TheIndependentAquarius; 20th September 2011 at 13:46.

  8. #6
    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: Why should I learn Qt?

    Links of this page should help, but i want to ask you: Why are you asking yourself (and us)?

  9. The following user says thank you to Zlatomir for this useful post:

    TheIndependentAquarius (20th September 2011)

  10. #7
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Why should I learn Qt?

    there was a whitepaper on qt website long ago which showed how a simple GUI application with some event handling was made with far more less lines of code than using MFC/Gtk/Win32Api etc. Try to search for that.

  11. #8
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Why should I learn Qt?

    Because your manager told you so. If you are the manager, and fear the question from devs, depends on 'what in where'. If it is intended to be desktop app, Qt is the best if it is anything which is serious enough. .net and java(I have spent enough hours on both) will both get a novice programmer up and running very fast for very basic of programs, but as the apps gets more serious, nothing can beat qt, its ease of use, its documentation. You can stay off from all the help from forums, qt assistant is all you need. No one can say that about msdn where in you wade and wade for hours, and come back to the same link after 10 mins or 10 hours depending upon your stamina and knowing nothing.
    Then it is cross-platform. Being native it is fast. Some Java developers will argue against it, but being native is always good. Being in c++, you have a lots of libraries to play with of c and c++. In .net you are restricted to ones that have been wrapped. Wrapping involves a lot marshalling, and kind of things no one wants to go through. So essentially it's what m$ gives you. Java is better in that way for the sheer number of libraries they have.
    However, if you are developing for the mobile platform in Qt, for whom are you developing exactly??

  12. #9
    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: Why should I learn Qt?

    Quote Originally Posted by Anisha Kaul View Post
    I mean, in both the sockets and threads, you need to write all the code of creation etc. be it in normal C++, or through Qt!
    Isn't it?
    Not really. If you use plain sockets, then you need to write C-based code that is quite low-level. Qt provides high-level abstractions for low-level interfaces, be it sockets, OpenGL, databases or any number of other things Qt provides.
    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.


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

    TheIndependentAquarius (20th September 2011)

  14. #10
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: Why should I learn Qt?

    Quote Originally Posted by wysota View Post
    Not really. If you use plain sockets, then you need to write C-based code that is quite low-level. Qt provides high-level abstractions for low-level interfaces, be it sockets, OpenGL, databases or any number of other things Qt provides.
    That was helpful hint, I'll check that out about how actually it works. Thanks.

    Quote Originally Posted by Zlatomir View Post
    LWhy are you asking yourself (and us)?
    I have some free time, and want to spend it in gaining some knowledge.
    Have heard of Qt but thought learning something without knowing its worth,
    may not be helpful, so decided to trust the seniors here.

  15. #11
    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: Why should I learn Qt?

    You know that <probably> everyone here will say it is worth to learn Qt?

    That is because Qt is helping us solve our problems, but if you ask someone that knows MFC (or WPF or wxWidgets or someOtherFramework) on an dedicated forum - you will most likely get an answer like: MFC/WPF/wxWidgets/someOtherFramework is worth it and Qt doesn't.

    Anyway, you should be the only one that can answer that question, we can only enumerate some advantages Qt has over the other frameworks that we used. So think about what are you trying to achieve and you will find the answer.

  16. #12
    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: Why should I learn Qt?

    Quote Originally Posted by Anisha Kaul View Post
    I have some free time, and want to spend it in gaining some knowledge.
    Have heard of Qt but thought learning something without knowing its worth,
    may not be helpful, so decided to trust the seniors here.
    I suggest to visit this place: http://qt.nokia.com/learning/education/course-materials

    There are a bunch of lessons and exercises here about Qt. They are mostly meant for academic purposes but I guess you can learn something from it on your own as well. It should at least give you a hint on what to expect from Qt (at least parts of it). By the way, any feedback on the materials is welcome.
    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.


  17. The following user says thank you to wysota for this useful post:

    TheIndependentAquarius (21st September 2011)

  18. #13
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: Why should I learn Qt?

    Quote Originally Posted by Zlatomir View Post
    You know that <probably> everyone here will say it is worth to learn Qt?
    Well, in that case I'll tell them to read the question properly. The question is W-H-Y.
    and also I am hoping that the people here are not misleadingly biased towards Qt.

    Actually I am NOT a GUI designer, nor I intend to become one. Therefore I was keen to
    know whether Qt should be/can be used for some other things besides creating a blue coloured
    button
    !

    Quote Originally Posted by wysota View Post
    I suggest to visit this place: http://qt.nokia.com/learning/education/course-materials There are a bunch of lessons and exercises here about Qt. They are mostly meant for academic purposes but I guess you can learn something from it on your own as well. It should at least give you a hint on what to expect from Qt (at least parts of it). By the way, any feedback on the materials is welcome.
    Many thanks for that Wysota, I'll check that out. :hattip:

  19. #14
    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: Why should I learn Qt?

    I see that you kind of misunderstood my previous post, so i will try to rephrase what i said.
    Quote Originally Posted by Anisha Kaul View Post
    Well, in that case I'll tell them to read the question properly. The question is W-H-Y. ...
    They will tell you that they already read the question, and the answer is "because Qt helps us solving our problems"
    Quote Originally Posted by Anisha Kaul View Post
    ...and also I am hoping that the people here are not misleadingly biased towards Qt. ...
    I didn't say that we "misleadingly" like Qt, i only said that here we like Qt.
    But i have friends that don't like Qt because they know other frameworks, for example: someone knows MFC and write code only for Windows and they consider that it doesn't worth to learn Qt.

    So: only depending on what you want to code and depending on what you already know, you can find out if Qt is worth to be learned.

    Anyway, if you already know C++, OOP and basic memory allocation, when you start learning Qt you will find that there isn't much to learn because the Qt framework is well designed there are some "patterns" that you need to understand and after that you can start working and the documentation will help whenever you need to use a class/module you didn't used before.

    /*I will tell you my reasons for Qt: //even that i think they are not going to help you that much
    1) portability
    2) it's design, so that you don't need to know the "whole" framework to work with it: some basic knowledge is enough and the rest can be used with the help of the documentation.
    3) documentation is probably better than any other
    4) the simpler high level events (signal-slot)
    */

Similar Threads

  1. how to learn QML?
    By zbj2012cn in forum Newbie
    Replies: 4
    Last Post: 25th July 2016, 10:26
  2. Help me for learn Qt.
    By Sparkle24 in forum Qt Programming
    Replies: 10
    Last Post: 9th May 2011, 10:04
  3. How did you learn QT 4 ?
    By pshah.mumbai in forum General Discussion
    Replies: 14
    Last Post: 28th May 2008, 16:30
  4. how did you learn Qt?
    By mismael85 in forum Newbie
    Replies: 3
    Last Post: 5th March 2008, 19:26
  5. Best way to learn Qt
    By vermarajeev in forum General Discussion
    Replies: 14
    Last Post: 7th March 2007, 11:33

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.