Errata

Programming with QT: Writing Portable GUI Applicat

Errata for Programming with QT: Writing Portable GUI Applicat

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page Index
qApp is introduced on page 44, not on page 43

Anonymous   
Printed Page 13
Example 2-1

Inline 8 : ( "Hello World", 0)
^ Missing
And make the problem can't work.

Anonymous   
Printed Page 13

http://www.oreilly.com/catalog/9781565925885/

The line:
QLabel* mylabel = new QLabel( "Hello world" );

should actually be:
QLabel* mylabel = new QLabel( "Hello world", 0 );

(It's correct in the examples.tar file though)

The QTScribble project (and I presume others) won't compile under QT
version 2.1 but does compile under 2.1.1.

Anonymous   
Printed Page 46
third paragraph

the line:

moc -o qtscribble.moc qtscribble2.cpp

should read:

moc -o qtscribble2.moc qtscribble2.cpp

Anonymous   
Printed Page 100
An addition to the discussion of setStretchableWidget()

(insert the following after the first paragraph): If you don't
want one of your widgets stretched, but still want the toolbar
to occupy the whole width of the main window, you can add a
dummy QLabel with no text or image and make this the
stretchable widget. It will have no visual appearance of its
own but occupy the remaining space.

Anonymous   
Printed Page 115
code segment for QMessageBox::Information

'QMessageBox::OK' should be 'QMessageBox::Ok'.

Anonymous   
Printed Page 147
In the second example, the object the stamp-objects are

appened to should be called "stamplist" instead of just "list", as it is
declared above.

Anonymous