What should I learn first: Boost or Qt

I am primarily a hobby programmer. I learned the basics of C ++, and then switched to Java, which I loved because of its simplicity. Now I am returning to C ++, and I would really like to learn the graphical interface with the Qt API, but I heard a lot of talk about Boost libraries.

My question is to learn Qt first, or it would be better to spend some time on Boost.

Personally, I'm in Qt cuz, I'm so tired of looking at the boring black screen of the console.

2) Is Pascal / Free Pascal a language worth learning these days. If so, what is the best place to study. I know that he is dying, but I am mysteriously attracted to the language.

+7
source share
6 answers

Having studied different languages ​​and libraries, I found that QT has better documentation and is very user friendly. Regardless of the learning curve (which is much simpler with Qt), Qt is designed for graphical interfaces and comes with a large container or useful templates, such as a signal slot, which helps a lot. But some say that the pre-compilation phase called β€œmok” can be problematic. You will need to use a specific compiler or tool chain.

Boost is an older school and "standard." I think you should have this in your skills tool. If you have C ++ and STL, the next step is to get to know boost, because boost is almost the official standard lib for C ++. The old C ++ guru contributes to this. In other words, enhancing learning is becoming more complex, but easier to integrate into your project. As some say ... many projects are dependent on BOOST.

You should know that even if you can use both boost and Qt in one project, you are better off making a choice, because many things are superfluous in boost with Qt.

Personnaly, I chose Qt because of the signal / slot mechanism and the high-level packet that it provides (openGl webkit svg sound, designer, etc.)

+12
source

For a hobby?

Then there are no questions: go with Qt. They have excellent documentation and very good full code samples that are available right now. You will have much more fun in Qt!

Boost, on the other hand, is like ... "super-C ++." This gives you powerful tools, but you definitely will not need these tools before you begin serious programming. In addition, they are sometimes terribly difficult to use ( boost :: graph , I look at you): because they can adapt to a wide range of applications, you need to configure an awfully large number of confusing parameters.

+11
source

Boost, definitely. This is the cornerstone of many other libraries.

+7
source

Go with Qt, IMO. Qt comes with many portable classes (I also know what I need too) that are suitable for collaboration, so you may not need a lot of support.

One of the main advantages of switching to Qt is that their objects can take full advantage of the signal / slot mashiness mechanism built into the structure and very powerful.

+6
source

All you want to do. Boost is to improve and make everything better, faster and easier, but only after you understand how it works. If you stick with C ++, then Boost is a good candidate.

If you want to add more GUIs, I really suggest you study Qt or wxWidgets before embarking on the mysterious world of Boost :)

2) If you use scripts, then yes, some of my programs use pascal scripts. I don't have my old training website, but it seems to have nice and simple instructions: http://www.taoyue.com/tutorials/pascal/

+2
source

Firstly, I think you should ask two different questions, as they are very different. I will answer only your first question:

I liked Java for its simplicity, I would recommend starting with Qt. The documentation is very complete and accurate, and you can quickly get interesting results. Boost is a great library, but it will take more time to get a good idea.

In any case, these are two different things. Qt is the application framework, and boost is the template library (for the most part). It depends on what you want to do.

+1
source

All Articles