Want to receive a weekly email containing
the scoop on our new titles along with the
occasional special offer? Just click the button.
(You can always unsubscribe later by editing your
account information).

Give us an email and a password (you can use the password later to log in and
change your preferences). We'll send you a newsletter roughly once a week.

Errata for Rapid GUI Development with QtRuby

We try to keep our books accurate, but sometimes mistakes creep
in. This page lists the errors submitted by our astute readers.
If you've found a new error, please
submit it.

The latest version of the book is P1.4,
released over 8 years ago.
If you've bought a PDF of the book and would like to upgrade
it to this version (for free), visit your
home page.

Key:TypoTech. ErrorSuggestionNot a problemNext edition

By default this page displays the errata for the latest version of
the book. If you have a previous version, select it here:

(To find out what version you have, look at the copyright page, a
few pages in from the front of the book. If it says (say)
'Second Printing', then here it'll be P2.0. If there are interim PDF
releases in that printing, they'll be 2.1, 2.2, and so on.)

PDF

Paper

Description

Found in

Fixed in

all

#24245: This is a great way to make my suggestions. But first I would like to point out that I really enjoyed going through this book. I'm so glad I was able to get an early download of it. I look forward to future versions of it and hope my suggestions can be of some use.

My suggestions are:
* Adding System wide event handler example
* More details and examples of the Strech, Spacing and SizePolicies.
* I think that information on using QT::Table is an essential part of this book. I think this information would be a great (next :-)) addition to the book.
* I've never used the IconView or Workspace and think more information (examples) would be wonderful additions to the book :-)
* In the section on the kde class libraries, it would be great if you could have a list of them (or the most common ones) or a link to find this information right there for the interested reader. And of course more example application code is always appreciated :-)
* In the section on Korundum, it seems like page 82 would be a great place for a link for more information, rather than waiting until the appendix.
* The closing chapter could have a closing section. Great summary of information, but didn't really feel like it gave the closure I was looking for (rb pun intended :-)).
* The Web References could have the URL as plain text in addition to being a link, so the interested reader can quickly glance at the sites.

Once again I would like to thank you for your hard work on this book. It has inspired me to want to write books and articles -- and I've been looking for that inspiration for a long time.

--Geoff Ruscoe

#24245: This is a great way to make my suggestions. But first I would like to point out that I really enjoyed going through this book. I'm so glad I...more...

P1.2
07-Mar-06

all

#25781: Greetings, I have a suggestion (I'm not a vip to request anything :)
), I recently bought yet another pragamtic book, the Rapid GUI
development with QtRuby friday guide, and I enjoy it enormously.

The suggestion is, that with the working-beta status of the Qt4-Ruby
extensions, and the many advantages of Qt4 over Qt3, it'd be nice to
produce a new edition of the book, with changes centered on the new
way of doing things in Qt4 and maybe an extra chapter with QtRuby ->
Qt4Ruby migration guidelines in it.

Personally I do not need the book right away, though I'd get it
eventually for the collection, but it'd be a good book for many people
and new buyers.

Thanks.
Lars Goldschlager.--Lars Goldschlager

#25781: Greetings, I have a suggestion (I'm not a vip to request anything :)
), I recently bought yet another pragamtic book, the Rapid GUI
developm...more...

P1.3
25-Aug-06

1

#46690: I think the book was helpful, but I'd really like to see an explanation of how to make a QtRuby executable. What's the point of making a Gui app if it's just a tool for my own use? If I'm the only one using it, I'll know all of the available options and save myself time by running it as a command line tool.

Part of the appeal of Qt was its wide platform support. But if I can't give a mac or pc user an executable to run without having to install Ruby and Qt on their system, why should I use QtRuby?

:(--Scott Steele

#46690: I think the book was helpful, but I'd really like to see an explanation of how to make a QtRuby executable. What's the point of making a Gui a...more...

P1.4
27-Mar-11

1

#29916: While the technical material covered seems accurate, and is helpful, I was sorely disappointed by the lack of practical examples. The code snippets did illustrate the points being made, but most of it was just snippets, rather than a self-contained script that could be run by itself.
More importantly, the building blocks were presented, with almost no information on how you build with them. It would have been great to see even a relatively simple app, like a regexp evaluator (something the local Perl group showed off in a meeting one day, not terribly complicated). Maybe a clock with reminders, something.
As it is, I think the best thing in terms of examples is the link at the end to Trolltech's QtRuby tutorials.--Paul Archer

#29916: While the technical material covered seems accurate, and is helpful, I was sorely disappointed by the lack of practical examples. The code sni...more...

P1.4
22-Nov-07

14

#25598: This is not really a bug, but rather positive feedback:
The tip to look for the "kdebindings" package for installation alone is worth the 8.50 bucks for this "Friday". Thanks muchly!

Suppose the idea of using the famous Qt GUI library with the Ruby scripting language crossed your mind. Alas, this happened to me yesterday.
Now, try googling for "ruby qt" (from Berlin, Germany) and check the results -- quite poor; OK, the first hit directs you to a KDevelop page with huge amounts of text, but nothing really effective.
Then try the swapped "qt ruby" -- a bit better; the second hit mentions "Ruby bindings" and the page refers to "QtRuby".
Third attempt, "qtruby" /without/ the space -- bingo!

Now imagine that you've never heard of this stuff and that you're on OpenSUSE. Go over to YaST's software selection and look for "qtruby" -- zilch. The same result on rpmseek.
OK, over to the QtRuby project page, download the .tar.gz source drop, run "make -f Makefile.cvs; ./configure; make; sudo make install" and you're done. When you're finished playing around, even "sudo make uninstall" works smoothly and only leaves an empty /usr/local/include subdirectory behind. Unfortunately, I'm no longer happy with this "configure/make" mechanism and really prefer the system package management system.
Seeing that QtRuby's "Hello World!" example works immediately, I check out Caleb Tennis' small booklet from this site and plunge into the text. Moments later: Hurray on page 14!

Had I acquired "Rapid GUI development with QtRuby" _before_ doing the ridiculously long list of intermediate steps above, and learned about the "kdebindings" package (in the case of OpenSUSE you want to install "kdebindings3-ruby"), it would have saved me a good amount of time.

Thanks again to Caleb Tennis for this nice booklet, which got be started so well (after a two-hour false start).--Andreas Scherer

#25598: This is not really a bug, but rather positive feedback:
The tip to look for the "kdebindings" package for installation alone is worth the 8.5...more...

P1.3
30-Jul-06

16

#23521: when compiling smoke, make smoke, after some considerable time I get...

x_20.cpp:10212: error: `MV_10_DOT_4' is not a member of type `Qt'
x_20.cpp: In static member function `static void x_Qt::x_495(Smoke::StackItem*)
':
x_20.cpp:10227: error: `MV_TIGER' is not a member of type `Qt'
make: *** [x_20.o] Error 1
mac-mini:~/ruby1.8.2/packages/qtruby-1.0.10/smoke/qt rossajmcd$ sudo make install
Password:
make: Nothing to be done for `install'.

thanks for your help!
--Ross Mcdonald

#23521: when compiling smoke, make smoke, after some considerable time I get...
x_20.cpp:10212: error: `MV_10_DOT_4' is not a member of type `Qt'
...more...

P1.0
05-Nov-05

22

#27022: "on page on page 19" second para page 22--Zaklama

P1.4
22-Feb-07

27

#29652: Second paragraph reads: First, Qt::Object provides a className() method that returns the name
of the class. Ruby provides the same information via the class() call.

This is simply not true. className returns a String, while class returns a Class.

#29652: Second paragraph reads: First, Qt::Object provides a className() method that returns the name
of the class. Ruby provides the same informat...more...

#24526: "The mousePressEvent( ) only gets invoked for presses in the empty
space of the MouseWidget, however. Notice that the MouseWidget
also contains a Qt::PushButton, but if that Qt::PushButton gets pressed,
it has its own internal handling of the mousePressEvent( ), and the
MouseWidget never sees a mousePressEvent( )."

This isn't completely true. A right-click is not handled by the button's event handler and it does get passed through. The example might be clearer if you remove the test for Qt::RightButton since both left and right-clicks would bring up the message dialog in the empty space while only the right-click would do so on the button.--Scott Dysinger

#24526: "The mousePressEvent( ) only gets invoked for presses in the empty
space of the MouseWidget, however. Notice that the MouseWidget
also conta...more...

P1.2
25-Apr-06

73

#26244: Would love to see A LOT more info on using with designer. In particular how to add a custom Widget that was created with QtRuby and be able to add that to the designer as a custom widget.--Robert J. Berger

#26244: Would love to see A LOT more info on using with designer. In particular how to add a custom Widget that was created with QtRuby and be able to...more...