Solved A complete reference on Qt5
-
@tomy
Yes, its beginner friendly if you want to use QML. -
@mrjj: Let me ask you a question. For what platforms can we write real applications using that QML?
And another question, what skills do we need to be able to correctly start reading it? -
@tomy
QML support most platforms.
What do you mean by real application?
QML is very good for mobile and modern GUIs but
might not be as suitable for a traditional desktop application.Mostly basic programming skills as it also give intro to editor etc.
It follows very good after
http://doc.qt.io/qt-5/qmlapplications.html -
@mrjj
By real applications, I meant those which are in the market.
To summarize the matter, can we say QML is the best choice to use C++ to create apps for platforms like iOS, Android and Windowsphones?And is Introduction to Design Patterns in C++ with Qt (2nd Edition) a good and complete reference to write apps for Windows, Linux and Unix?
Do you agree?
-
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
-
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
-
@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?
-
@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
-
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?
-
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.
-
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?
-
@tomy I'd say C++ GUI Programming first but that's my personal opinion
-
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
-
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.
-
@SGaist well, on the other hand, I did not know I needed the model/view framework until I learned what it can do
-
@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?
-
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.
-
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.
-
@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.