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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

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

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 2
In the first paragraph

"security"

has been changed to:

"safety"

Anonymous    Jul 01, 1999
Printed
Page 5
In the first paragraph

"slower"

has been changed to:

"faster"

Anonymous    Jul 01, 1999
Printed
Page 5
In the next-to-last paragraph

"GUI-layering"

has been changed to:

"API-layering"

Anonymous    Jul 01, 1999
Printed
Page 6
In the first line of the first paragraph

"not"

has been changed to:

"no"

Anonymous    Jul 01, 1999
Printed
Page 7
In the second command-line example

"xvfz"

has been changed to:

"xvzf"

Anonymous    Jul 01, 1999
Printed
Page 17
In the next-to-last paragraph

"Annotated class list view"

has been changed to:

"Annotated Class List"

Anonymous    Jul 01, 1999
Printed
Page 26
In the first paragraph of "Another example..."

"own"

has been changed with:

"user-defined"

Anonymous    Jul 01, 1999
Printed
Page 27

"QLCDNumber* mylcdnum = new QWidget..."

has been changed to:

"QLCDNumber* mylcdnum = new QLCDNumber..."

Anonymous    Jul 01, 1999
Printed
Page 28
The line number 2 in the first line has been changed to 26.

Anonymous    Jul 01, 1999
Printed
Page 28
In the second item of "Running moc", the section "Building

Projects Portably with tmake" is located in the chapter
"Portability".

Anonymous    Jul 01, 1999
Printed
Page 32
If your screen resolution is less than 1280x1024, use 50 as

the y coordinate in the setGeometry() call in line 113 (second
argument).

Anonymous    Jul 01, 1999
Printed
Page 34
The s of QPaintDevices in the last but one line is now typeset

in roman.

Anonymous    Jul 01, 1999
Printed
Page 36
In exercise 2, the second occurrence of "use" has been removed.

Anonymous    Jul 01, 1999
Printed
Page 36
The following hint has been added to exercise 3

"Closing the application can be done by calling qApp->quit()".

Anonymous    Jul 01, 1999
Printed
Page 39
The destructor in the listing (lines 88-93) has been typeset

in bold.

Anonymous    Jul 01, 1999
Printed
Page 42
If your screen resolution is less than 1280x1024, use 50 as

the y coordinate in the setGeometry() call in line 216 (second
argument).

Anonymous    Jul 01, 1999
Printed
Page 49
Lines 70-71 are now typeset in bold.

Anonymous    Jul 01, 1999
Printed
Page 52
Lines 212-221 are now typeset in bold.

Anonymous    Jul 01, 1999
Printed
Page 53
Lines 260, 263, 266, 269 and 272 are now typeset in bold.

Anonymous    Jul 01, 1999
Printed
Page 53
In the last paragraph: The "addChild()" invocation mentioned is the

one on line 219 (page 52).

Anonymous    Jul 01, 1999
Printed
Page 53
If your screen resolution is less than 1280x1024, use 50 as

the y coordinate in the setGeometry() call in line 284 (second
argument).

Anonymous    Jul 01, 1999
Printed
Page 62
If your screen resolution is less than 1280x1024, use 50 as

the y coordinate in the setGeometry() call in line 315 (second
argument).

Anonymous    Jul 01, 1999
Printed
Page 71
If your screen resolution is less than 1280x1024, use 50 as

the y coordinate in the setGeometry() call in line 383 (second
argument).

Anonymous    Jul 01, 1999
Printed
Page 72
In the first paragraph

"ScribbleArea::slotLoad()" and "ScribbleArea::slotSave()"

has been replaced with:

"ScribbleWindow::slotLoad()" and "ScribbleWindow::slotSave()", respectively.

Anonymous    Jul 01, 1999
Printed
Page 81
In the second code block, there are now quotation marks

around "Choice2" and "Choice3" (like with "Choice1"). Also,
the quotation marks around parent have been removed.

Anonymous    Jul 01, 1999
Printed
Page 84
In the last paragraph, "or check boxes" has been added at the end

of the sentence.

Anonymous    Jul 01, 1999
Printed
Page 84
In the fifth paragraph: The section "Validating User Input" is

contained in the chapter "Text Processing".

Anonymous    Jul 01, 1999
Printed
Page 86
The following line has been added before "Spin boxes"

"For a full example, see the section "Another example for
signals and slots" on pp 26-29."

Anonymous    Jul 01, 1999
Printed
Page 88
In the last line of the third paragraph

"sliderMoved()"

has been replaced with:

"sliderMoved( int )".

Anonymous    Jul 01, 1999
Printed
Page 93
In the second line of the second paragraph, the word "size" has been

removed.

Anonymous    Jul 01, 1999
Printed
Page 93
In the last sentence, the first "only" has been removed.

Anonymous    Jul 01, 1999
Printed
Page 95
In the first paragraph of "Labels": "are" has been inserted between

"there" and "two".

Anonymous    Jul 01, 1999
Printed
Page 100
In the first paragraph of "Status bars": "only" and "text" have been

reversed.

Anonymous    Jul 01, 1999
Printed
Page 104
In the last sentence before code example: "a" has been inserted before

"small" and "example".

Anonymous    Jul 01, 1999
Printed
Page 111
In the last line the extranneous "the" has been deleted.

Anonymous    Jul 01, 1999
Printed
Page 118
In the fourth and last paragraph

"cancel"

has been replaced with:

"Cancel"

Anonymous    Jul 01, 1999
Printed
Page 119
In the first line, an "is" has been inserted between "This" and "no".

Anonymous    Jul 01, 1999
Printed
Page 121
Listing, line 108: "&" has been removed.

Anonymous    Jul 01, 1999
Printed
Page 122
In the second paragraph: "the the" has been changed to "the".

Anonymous    Jul 01, 1999
Printed
Page 124
The line "cites a Usenet posting by Jared M. Spool that" has been

removed from the first paragraph.

Anonymous    Jul 01, 1999
Printed
Page 126
In the description of QBoxLayout

"QBoxLayout"

has been replaced with:

"QVBoxLayout".

Anonymous    Jul 01, 1999
Printed
Page 126
activate() should not be called in Qt 2.0.

Anonymous    Jul 01, 1999
Printed
Page 132
In the second paragraph, last but one line: "then" has been removed.

Anonymous    Jul 01, 1999
Printed
Page 134
In the second-to-last line

"increase"

has been replaced with:

"optimize"

Anonymous    Jul 01, 1999
Printed
Page 139
In the third item, "swouldn't" has been changed to "wouldn't".

Anonymous    Jul 01, 1999
Printed
Page 139
In the fourth item, "be presented" has been inserted between

"he should" and "with the text".

Anonymous    Jul 01, 1999
Printed
Page 140
In the first line, "progess" has been replaced with "progress".

Anonymous    Jul 01, 1999
Printed
Page 145
In the second line, the "a" has been removed before "non-trivial".

Anonymous    Jul 01, 1999
Printed
Page 146
In the first code example, a semicolon has been added at the end.

Anonymous    Jul 01, 1999
Printed
Page 149
In the code block, last but two line: "it" has been changed to

"iterator".

Anonymous    Jul 01, 1999
Printed
Page 155
In the fifth paragraph, second line: "a" has been inserted between

"than" and "page".

Anonymous    Jul 01, 1999
Printed
Page 163
In the first paragraph of "Advanced QPainter...": "far the

beyond" has been replaced with "far beyond the".

Anonymous    Jul 01, 1999
Printed
Page 165
"QWMMatrix" has been replaced with "QWMatrix" (four times)

Anonymous    Jul 01, 1999
Printed
Page 166
"QWMMatrix" has been replaced with "QWMatrix" (once)

Anonymous    Jul 01, 1999
Printed
Page 167
In the last but one paragraph, last but one line: the second "it"

has been removed.

Anonymous    Jul 01, 1999
Printed
Page 168
In the last paragraph, line 6: the second "further" has been removed.

Anonymous    Jul 01, 1999
Printed
Page 169
In the fourth paragraph "called that is" has been replaced with

"that is called".

Anonymous    Jul 01, 1999
Printed
Page 186
In the second code example: "true" has been replaced with "false".

Anonymous    Jul 01, 1999
Printed
Page 256
The section "Managing Colors" mentioned in the description of

QApplication::setColorSpec() is located in the chapter "Graphics".

Anonymous    Jul 01, 1999
Printed
Page 311
In the second paragraph: "witha" has been changed to "with a".

Anonymous    Jul 01, 1999
Printed
Page 317
In the explanation for exercise 1, the sentence about

tracking has been removed.

Anonymous    Jul 01, 1999
Printed
Page 323
In the answer to exercise 3, second item: the second "called"

has been changed to "selected".

Anonymous    Jul 01, 1999
Printed
Page 329
The following has been added to the explanation of exercise 1

of "Adding a Scrolled View": "qkeycode.h is the include file
for the key definitions like Key_Up".

Anonymous    Jul 01, 1999
Printed
Page 329
The following has been added to the explanation of exercise 1

of "Adding a Context Menu": "You also need to add the lines

signals:
void colorMenuSelected( int );

to the class declaration of ScribbleArea.

Anonymous    Jul 01, 1999