Results 1 to 15 of 15

Thread: Best way to learn Qt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Best way to learn Qt

    Quote Originally Posted by wysota View Post
    Then there is no reason to teach them Qt if they don't know any other toolkit and want to switch environments (switch from what?).
    No!!!. There is a reason. Here it is...

    Ok I agree attendants have to have some knowledge on some toolkit but there can be cases where the attendants are just fresh passed out. They might have done some small project during their colleges. So there is possibility that they have some domain knowledge (might not be MFC). It can be either Visual Basics, Networking, C, C++, Computer Graphics, Java etc.

    When I learned Qt I only knew C, C++, Visual Basic etc but not MFC. I think if you have a strong C++ background, then learning Qt is somewhat easier. There is QtAssistance which makes your life much easier. QtAssistance has everything but you need to find the proper function to fit in proper place.

    I'm just assuming majority of attendant have knowlwdge on C, C++ and few on MFC. In that case what can be your classic idea????

    By the way wysota, can you share some of your experiences learning Qt for the first time. I wil love to hear that.

    One more small question.. Assume attendants knows only C, C++ and not other toolkits.( and NOTHING). You have 10 such people and you are asked to teach Qt to those people. How do you do proceed???? Please put down all you ideas.

    This is going to be interesting. I'm eagerly waiting.

  2. #2
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Best way to learn Qt

    Assume attendants knows only C, C++ and not other toolkits.( and NOTHING). You have 10 such people and you are asked to teach Qt to those people. How do you do proceed????
    Well, I would begin by sorting out how much of a C/C++ experience they have. If some of them know only C, then you should start teaching them with C++ ( best of luck ) . I would first access the skill levels and then give lecture according to that. You cannot expect a C guy to know the polymorphisms in C++. So the minimum requirement would be that they should know C++ well. You could give a quick intro to C++.

    If you have the copy of C++ Gui programming book. the Appendix B will help you.
    It explains about Header files, breaking the program into different headers, Classes, subclassing. operator overloading, virtual mechanism ... If your students have trouble understanding it, then give assignments on that. Once C++ is done

    I would start out with the Qt tutorials in the Assistant...
    Gradually explain about the Designer. Give a couple of simple assignmenst like a notepad, calcuator, ...

    These assignments will help them get a taste of Qt. Once that is done proceed to higher concepts like events, Subclassing widgets , creating a widget from sratch ..., Plugins etc
    We can't solve problems by using the same kind of thinking we used when we created them

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

    Default Re: Best way to learn Qt

    Quote Originally Posted by vermarajeev View Post
    Ok I agree attendants have to have some knowledge on some toolkit but there can be cases where the attendants are just fresh passed out. They might have done some small project during their colleges. So there is possibility that they have some domain knowledge (might not be MFC). It can be either Visual Basics, Networking, C, C++, Computer Graphics, Java etc.
    Java or Visual Basic are fine too. Let everyone program in the language/toolkit of their choice (be it Swing or VB).

    When I learned Qt I only knew C, C++, Visual Basic etc but not MFC. I think if you have a strong C++ background, then learning Qt is somewhat easier. There is QtAssistance which makes your life much easier. QtAssistance has everything but you need to find the proper function to fit in proper place.
    But you didn't attend a training for employees (God, what a hard word, I probably misspelled it). In that case the path has to be different.

    I'm just assuming majority of attendant have knowlwdge on C, C++ and few on MFC. In that case what can be your classic idea????
    Hmm.... Maybe this?
    Qt Code:
    1. #include <QApplication>
    2. #include <QPushButton>
    3.  
    4. int main(int a, char **b){
    5. QApplication app(a,b);
    6. c.setText("Hello world!");
    7. c.show();
    8. return app.exec();
    9. }
    To copy to clipboard, switch view to plain text mode 

    And seriously prepare some slides explaining basic concepts of Qt (QObject memory management, signals and slots, object introspection) and then expand to add new topics. And make them write some code...

    By the way wysota, can you share some of your experiences learning Qt for the first time. I wil love to hear that.
    Oh, sure... no tutorials, trial and error, segfaults, segfaults, segfaults (when accessing GUI from worker threads)... and then I learned to use Assistant correctly Then registered at QtForum and started answering questions. That helped very much Oh and about half a year later I wrote my first more serious working application ("working" is the key word here).

    One more small question.. Assume attendants knows only C, C++ and not other toolkits.( and NOTHING). You have 10 such people and you are asked to teach Qt to those people. How do you do proceed???? Please put down all you ideas.
    I'll tell you in three months

  4. #4
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Best way to learn Qt

    Quote Originally Posted by wysota View Post
    Oh, sure... no tutorials, trial and error, segfaults, segfaults, segfaults (when accessing GUI from worker threads)... and then I learned to use Assistant correctly Then registered at QtForum and started answering questions. That helped very much Oh and about half a year later I wrote my first more serious working application ("working" is the key word here).
    I'll tell you in three months
    Ha Ha Ha, Interesting!!!! I'm waiting for 3 months to get over.

    Can you please tell me some assignments samples to be given.

    thanks.

Similar Threads

  1. books to learn Qt
    By nimmyj in forum Newbie
    Replies: 2
    Last Post: 8th December 2006, 21: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.