Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Starting with Qt 5.5
QtWS25 Last Chance

Starting with Qt 5.5

Scheduled Pinned Locked Moved The Lounge
beginner
12 Posts 5 Posters 4.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ChajusSaib
    wrote on 22 Jul 2015, 00:49 last edited by ChajusSaib
    #1

    Hello lads,
    So I'm a beginner and have done really little GUI programming, where would ye say I should start. Should I just read up on the documentation? I'm thinking a book would be better though I would like it to be on Qt 5.5. I've found books and they're on Qt 4 and 3.
    Would Application Development with Qt Creator, 2nd Edition be a good one? And maybe I could pickup Qt5 Blueprints after

    I've also googled but posts are from 2-3 years back. Thanks!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JohanSolo
      wrote on 22 Jul 2015, 05:49 last edited by
      #2

      I would say that books on Qt 4 are OK to start with if you're sticking to the C++ side of Qt. Then Qt comes (or at least used to come) with nice examples you can compile and look at the the code.

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      C 1 Reply Last reply 22 Jul 2015, 15:36
      0
      • J JohanSolo
        22 Jul 2015, 05:49

        I would say that books on Qt 4 are OK to start with if you're sticking to the C++ side of Qt. Then Qt comes (or at least used to come) with nice examples you can compile and look at the the code.

        C Offline
        C Offline
        ChajusSaib
        wrote on 22 Jul 2015, 15:36 last edited by
        #3

        @JohanSolo Yea I'll be sticking to the c++ side of things for now. Which Qt 4 book would you recommend? Thanks

        1 Reply Last reply
        0
        • C Offline
          C Offline
          CharlesH
          wrote on 22 Jul 2015, 19:35 last edited by
          #4

          Well, I'm a beginner to Qt, but also to QtForums, any at least you've figured out how to post a question. I've got a problem with QStringList and can't figure out how to ask for help.

          FWIW, Here's my problem:
          Error message:
          test1.cpp:7:1: error: ‘colors’ does not name a type

          code:
          #include <QtCore>
          #include <QStringList>

          // g++ -o test1 test1.cpp pkg-config Qt5Core --cflags --libs -fPIE

          QStringList colors;
          colors.append("Blue");

          int main (int argc, char ** argv)
          {
          return 0;
          }

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 22 Jul 2015, 19:39 last edited by
            #5

            Hi and welcome to devnet,

            Please don't highjack other users thread with unrelated questions.

            As for your problem, it's not a Qt problem but C++ basics: colors.append("Blue"); is in a wrong location. Put it in you main function and it will build.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • C Offline
              C Offline
              ChajusSaib
              wrote on 22 Jul 2015, 22:47 last edited by
              #6

              I was thinking of getting C++ GUI Programming with Qt 4, Second Edition and then getting Qt 5 Blueprints as well as going over the documentation. How did ye learn Qt?

              J 1 Reply Last reply 23 Jul 2015, 02:17
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 22 Jul 2015, 23:00 last edited by
                #7

                @ChajusSaib are you asking me ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                C 1 Reply Last reply 22 Jul 2015, 23:23
                0
                • S SGaist
                  22 Jul 2015, 23:00

                  @ChajusSaib are you asking me ?

                  C Offline
                  C Offline
                  ChajusSaib
                  wrote on 22 Jul 2015, 23:23 last edited by
                  #8

                  @SGaist Yea, I'm asking anyone who's reading.

                  1 Reply Last reply
                  0
                  • C ChajusSaib
                    22 Jul 2015, 22:47

                    I was thinking of getting C++ GUI Programming with Qt 4, Second Edition and then getting Qt 5 Blueprints as well as going over the documentation. How did ye learn Qt?

                    J Offline
                    J Offline
                    JKSH
                    Moderators
                    wrote on 23 Jul 2015, 02:17 last edited by JKSH
                    #9

                    Hi @ChajusSaib,

                    How did ye learn Qt?

                    In the beginning, I learnt Qt by following online tutorials: I read the code and the explanations, and then I typed out the code myself (not copy+paste!). Then, I modified the code and rebuilt the app to see how my changes affect the app.

                    After that, I learnt Qt by implementing my own small projects using Qt. (I find it easier to learn when I want to achieve something specific.) When I got stuck:

                    • I searched Google (for example, searching for "regular expressions Qt"), AND/OR
                    • I read the documentation of the classes that I want to use, AND/OR
                    • I posted in the forums (I started at qtcentre.org but now I spend my time here at qt.io).

                    Nowadays, I learn Qt by:

                    • Doing the same things as before, AND
                    • Implementing large projects using Qt, AND
                    • Reading the problems that other people have, and then researching how to solve them, AND
                    • Reading the source code of the classes that I'm interested in.

                    In summary, the way I learnt Qt changed as I got more experienced.

                    I know that different people have different ways of learning, and some people like books more than online tutorials. I haven't read any Qt books myself so I can't suggest one for you. However, I suggest you start by following the official tutorial for beginners: http://doc.qt.io/qt-5/gettingstartedqt.html

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    C 1 Reply Last reply 23 Jul 2015, 20:42
                    1
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 23 Jul 2015, 20:30 last edited by
                      #10

                      I started with Qt at school, then used it for work and learned by practicing, reading books and the documentation. Depending on your needs, you could also be interested by courses from enterprises like the Qt Company, KDAB, ICS etc.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • J JKSH
                        23 Jul 2015, 02:17

                        Hi @ChajusSaib,

                        How did ye learn Qt?

                        In the beginning, I learnt Qt by following online tutorials: I read the code and the explanations, and then I typed out the code myself (not copy+paste!). Then, I modified the code and rebuilt the app to see how my changes affect the app.

                        After that, I learnt Qt by implementing my own small projects using Qt. (I find it easier to learn when I want to achieve something specific.) When I got stuck:

                        • I searched Google (for example, searching for "regular expressions Qt"), AND/OR
                        • I read the documentation of the classes that I want to use, AND/OR
                        • I posted in the forums (I started at qtcentre.org but now I spend my time here at qt.io).

                        Nowadays, I learn Qt by:

                        • Doing the same things as before, AND
                        • Implementing large projects using Qt, AND
                        • Reading the problems that other people have, and then researching how to solve them, AND
                        • Reading the source code of the classes that I'm interested in.

                        In summary, the way I learnt Qt changed as I got more experienced.

                        I know that different people have different ways of learning, and some people like books more than online tutorials. I haven't read any Qt books myself so I can't suggest one for you. However, I suggest you start by following the official tutorial for beginners: http://doc.qt.io/qt-5/gettingstartedqt.html

                        C Offline
                        C Offline
                        ChajusSaib
                        wrote on 23 Jul 2015, 20:42 last edited by
                        #11

                        @JKSH
                        Thank you for that great explanation, I think I will follow the documentation and the ways you learned Qt. The doc is up to date unlike the books and probably have best practices etc. And I will just work my way up from there. Thanks

                        @SGaist
                        Thanks for the feedback but I'm not looking for courses.

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          JKSH
                          Moderators
                          wrote on 23 Jul 2015, 23:34 last edited by
                          #12

                          Welcome to the world of Qt :) Happy coding!

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          1 Reply Last reply
                          1

                          3/12

                          22 Jul 2015, 15:36

                          topic:navigator.unread, 9
                          • Login

                          • Login or register to search.
                          3 out of 12
                          • First post
                            3/12
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved