PDA

View Full Version : A little bit of a complaint - for the Administrators, perhaps?



dreadnyah
20th December 2009, 20:45
I am a competent C++ programmer - C++ being one of the languages I use as a freelance developer. I'm looking at Qt for developing open source applications designed to run in linux. I'm really impressed by the information available on the Qt site as well as youtube (Qt channel) and ICS.

The home page of qtcentre, however, has a link to "The Independent Tutorial" - I tried following that tutorial and got stuck on line 6 of code!

The code in the tutorial triies to include qvbox.h, this is the directive: #include <qvbox.h>. This file does not exist on my machine - I am using qt 4.5 in linux.

My point is that a site such as this should not have a link to a tutorial that will stump someone new to Qt on the sixth line of code! I believe that the code is trying to use an obsolete header file and library - I have not bothered to look for any replacement to that file although I think it may be QVBoxLayout. I would like to suggest that the code should be updated or the link removed.

dreadnyah

squidge
20th December 2009, 21:54
The same question was asked 2 years ago: http://www.qtcentre.org/forum/f-qt-programming-2/t-cannot-open-qvboxh-6143.html

The tutorial you are following is for Qt3, and your using Qt4. Maybe the tutorial should be updated or removed, as you suggested.

Tanuki-no Torigava
20th December 2009, 22:09
Maybe it is not a good advice but you can always get Qt books in torrent or buy an electronic copy on Google books (cheaper than Amazon anyway).

squidge
20th December 2009, 22:30
There are several Qt books available with freely distributable license if you don't want to buy one from Amazon (eg. C++ GUI Programming with Qt 4, and Introduction to Design Patterns in C++ with Qt4). Sometimes they are not the latest edition, but they are still very valuable to some people.

wysota
21st December 2009, 07:15
Maybe the tutorial should be updated or removed, as you suggested.

I don't see why it should be removed. Some people still use Qt3.

squidge
21st December 2009, 08:14
Ok, how about stating in the link Qt3? That will stop some people using Qt4 from following it.

wysota
21st December 2009, 16:13
I have already talked to Johan about it.

dreadnyah
21st December 2009, 17:03
Thanks for all your replies and the advice on the books - I've got `C++ GUI Programming With Qt 4` and I am about to start using it.

I think that the link should be updated to state that it is a Qt3 tutorial. This would save a lot of frustration. For me the most unpleasant and difficult part of learning a new API is getting the starting point, bottom up. eg. like `How do I show & activate a window`, `How do I get a mouse event, such as the coords of a click event - which class & which member function` or `How do I get user input in a text box` It is at that point in my journey with Qt that I followed the link to the tutorial and then hit a wall - very frustrating. Perhaps if the link is changed to reflect Qt3 then a few people will be saved that frustration.

Once again, thank you for your replies and the advice on books.