Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. A complete reference on Qt5
Forum Updated to NodeBB v4.3 + New Features

A complete reference on Qt5

Scheduled Pinned Locked Moved Solved General and Desktop
26 Posts 7 Posters 9.3k Views 4 Watching
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #13

    Hi,

    Qt 5 is not a revolution it's an evolution from Qt 4 so to summarize a bit:

    • Good books for Qt 4 still applies for Qt 5 with some minor adaptation from time to time
    • QML can be used for both desktop and mobile application. It's up to you to decide whether widgets or Qt Quick fits your use case better.
    • The usual architecture of a QML application is: GUI with Qt Quick for all the nice bells and whistles you have at disposal and backend code in C++ for performance.

    If you want a big example of QML + Qt, take a look at KDE

    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
    3
    • VRoninV VRonin

      I wouldn't downgrade QML to "the mobile GUI"

      I learned everything I know from "C++ GUI Programming with Qt 4" and "Advanced Qt Programming: Creating Great Software with C++ and Qt 4" which have their big flaws of course and they do not cover QML at all. I wouldn't consider the recent "cookbook" as a great reference though.

      I personally don't think there is a complete reference in one place

      tomyT Offline
      tomyT Offline
      tomy
      wrote on last edited by tomy
      #14

      @VRonin: By "which have their big flaws of course", did you mean that big flaws is that, those two books don't cover QML?
      & @SGaist:
      Now guys, what would be your advice for a person if they wanted to be able to create apps for many platforms, like: Windows, iOS, Android, Embedded systems, Linux and Unix?
      To me, I should start reading these two books at the same time:

      • C++ GUI Programming with Qt 4 (2nd Edition) - The official C++/Qt book
      • Qt5 Cadaques

      Do you agree completely?

      VRoninV 1 Reply Last reply
      0
      • tomyT tomy

        @VRonin: By "which have their big flaws of course", did you mean that big flaws is that, those two books don't cover QML?
        & @SGaist:
        Now guys, what would be your advice for a person if they wanted to be able to create apps for many platforms, like: Windows, iOS, Android, Embedded systems, Linux and Unix?
        To me, I should start reading these two books at the same time:

        • C++ GUI Programming with Qt 4 (2nd Edition) - The official C++/Qt book
        • Qt5 Cadaques

        Do you agree completely?

        VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by VRonin
        #15

        @tomy said in A complete reference on Qt5:

        @VRonin: By "which have their big flaws of course", did you mean that big flaws is that, those two books don't cover QML?

        No, bigger ones unfortunately, for example:

        • Threading (using QThread) chapters in those books should be burnt and forgotten
        • the HTTP/FTP part of C++ GUI Programming has been made (almost) obsolete in Qt5
        • same thing for the Audio/Video part of Advanced Qt Programming
        • the delegate painting in AQP still hurts my eyes if I look at it.
        • C++ GUI Programming with Qt 4 (2nd Edition) - The official C++/Qt book
        • Qt5 Cadaques

        Do you agree completely?

        I think I do. But I wouldn't discard AQP, the entire model/view and QGraphicsScene frameworks are treated so much better in there

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        tomyT 1 Reply Last reply
        2
        • VRoninV VRonin

          @tomy said in A complete reference on Qt5:

          @VRonin: By "which have their big flaws of course", did you mean that big flaws is that, those two books don't cover QML?

          No, bigger ones unfortunately, for example:

          • Threading (using QThread) chapters in those books should be burnt and forgotten
          • the HTTP/FTP part of C++ GUI Programming has been made (almost) obsolete in Qt5
          • same thing for the Audio/Video part of Advanced Qt Programming
          • the delegate painting in AQP still hurts my eyes if I look at it.
          • C++ GUI Programming with Qt 4 (2nd Edition) - The official C++/Qt book
          • Qt5 Cadaques

          Do you agree completely?

          I think I do. But I wouldn't discard AQP, the entire model/view and QGraphicsScene frameworks are treated so much better in there

          tomyT Offline
          tomyT Offline
          tomy
          wrote on last edited by
          #16

          I think I do. But I wouldn't discard AQP, the entire model/view and QGraphicsScene frameworks are treated so much better in there

          I don't know of AQP. Do you suggest me to read also another book (this one on AQP) with the previous two? If so, wouldn't it be too hard for a beginner of Qt to read 3 books at the same time?

          1 Reply Last reply
          0
          • VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #17

            AQP is just short for "Advanced Qt Programming: Creating Great Software with C++ and Qt 4" I would read it last. start with C++ GUI Programming if you go through it you'll be able to design Qt desktop applications (so widows, mac, linux). Qt5 Cadaques will introduce you to QML and how to design UI with it for all devices type and platforms. AQP will give you more insight on how to efficiently use Qt most popular framework, after reading this you'll start despising any use of QTableWidget (and relatives) and how little sense the difference in model columns management differences from QtWidgetsa and QML makes.

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            1
            • tomyT Offline
              tomyT Offline
              tomy
              wrote on last edited by
              #18

              OK, thank you.

              But only a little misunderstanding. Do you suggest me to read the books (C++ GUI Programming Qt4 & Qt5 Cadaques) simultaneously or first reading the book C++ GUI Programming and after finishing it, start to read Qt5 Cadaques?

              VRoninV 1 Reply Last reply
              0
              • tomyT tomy

                OK, thank you.

                But only a little misunderstanding. Do you suggest me to read the books (C++ GUI Programming Qt4 & Qt5 Cadaques) simultaneously or first reading the book C++ GUI Programming and after finishing it, start to read Qt5 Cadaques?

                VRoninV Offline
                VRoninV Offline
                VRonin
                wrote on last edited by
                #19

                @tomy I'd say C++ GUI Programming first but that's my personal opinion

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                mrjjM 1 Reply Last reply
                1
                • VRoninV VRonin

                  @tomy I'd say C++ GUI Programming first but that's my personal opinion

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #20

                  I must second @VRonin that
                  C++-GUI-Programming-with-Qt-4 is great to read first.

                  http://www.bogotobogo.com/cplusplus/files/c-gui-programming-with-qt-4-2ndedition.pdf

                  1 Reply Last reply
                  1
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #21

                    On a small side note, you won't find a definitive complete book about all of Qt 5 as there is also no complete and definitive book about all Qt 4. The framework evolves with time. New modules are added, some might get removed.

                    You should rather look for sources that contains material that you are interested in. There's for example no use of studying from the start the QtSql module if you don't intend to use databases. Study it when the time comes.

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

                    VRoninV tomyT 2 Replies Last reply
                    3
                    • SGaistS SGaist

                      On a small side note, you won't find a definitive complete book about all of Qt 5 as there is also no complete and definitive book about all Qt 4. The framework evolves with time. New modules are added, some might get removed.

                      You should rather look for sources that contains material that you are interested in. There's for example no use of studying from the start the QtSql module if you don't intend to use databases. Study it when the time comes.

                      VRoninV Offline
                      VRoninV Offline
                      VRonin
                      wrote on last edited by
                      #22

                      @SGaist well, on the other hand, I did not know I needed the model/view framework until I learned what it can do

                      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                      ~Napoleon Bonaparte

                      On a crusade to banish setIndexWidget() from the holy land of Qt

                      1 Reply Last reply
                      0
                      • SGaistS SGaist

                        On a small side note, you won't find a definitive complete book about all of Qt 5 as there is also no complete and definitive book about all Qt 4. The framework evolves with time. New modules are added, some might get removed.

                        You should rather look for sources that contains material that you are interested in. There's for example no use of studying from the start the QtSql module if you don't intend to use databases. Study it when the time comes.

                        tomyT Offline
                        tomyT Offline
                        tomy
                        wrote on last edited by
                        #23

                        @SGaist said in A complete reference on Qt5:

                        On a small side note, you won't find a definitive complete book about all of Qt 5 as there is also no complete and definitive book about all Qt 4. The framework evolves with time. New modules are added, some might get removed.

                        You should rather look for sources that contains material that you are interested in. There's for example no use of studying from the start the QtSql module if you don't intend to use databases. Study it when the time comes.

                        Yes, I see.
                        But about my needs (to learn how to create apps for platforms I mention above) I should start the way somewhere.
                        I think after starting reading the book(s) I should look at this site and ask questions every so often to be up-to-date.

                        Do you agree that I need to reads the books those two mates kindly advised me with that order?

                        1 Reply Last reply
                        0
                        • ModelTechM Offline
                          ModelTechM Offline
                          ModelTech
                          wrote on last edited by ModelTech
                          #24

                          I recently started properly with Qt and my approach was similar to what you have in mind. I bought the two Qt4 books that are mentioned before. Started reading in the C++ GUI programming with Qt4 and using some examples from the web and scanned a bit through the advanced book, just to have an idea of pointers to different topics.

                          From the C++ GUI programming with Qt4 book, I managed myself to adapt things for Qt5 and after working through the first few chapters, I concluded that I should simply start writing my own code. Doing so made me put the book mostly aside, except to search for starting points on the kind of things that I need and to look at some relevant examples (I also downloaded the examples to the books).

                          The Qt documentation on the Qt site is really good in my opinion and this forum has already helped me a lot with getting started and even with some more tricky bits. I am actually very pleased with the available documentation and support, especially if I compare this with some previous experiences I had with several Eclipse technologies.

                          1 Reply Last reply
                          1
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #25

                            Those are good books indeed and valuable to read. But don't forget Qt's own documentation. It's no just the classes explained. You have all the concepts behind Qt, the different modules, tutorials and examples.

                            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
                            1
                            • tomyT Offline
                              tomyT Offline
                              tomy
                              wrote on last edited by
                              #26

                              @ModelTech: thanks for your experience that you shared with me.
                              @SGaist: thanks for the advice. I start reading the C++ GUI Programming and will have a glance into the contents of this site and the documentations.

                              1 Reply Last reply
                              0

                              • Login

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