< Zurück | Inhalt | Weiter >

F

Façade patterns exercises, 389

Filetagger example, 385–389

functional, 384

overview of, 381–383

review questions, 390

smart pointers, 384–385 Factories

creating questions for forms with, 398–399

defined, 360

Factory method, 360

fifo (incoming message queue), 298 File formats, MP3 player, 560

File scope

vs. block scope, 468–469 vs. global scope, 466 overview of, 466

Filenames, finding header files, 86 Files, visiting code for, 183


image

610


FileTagger

auto-generated form, 407

façade example, 386–389

MP3 player, 553, 568

SQL table, 426 FileVisitor

customizing using inheritance, 186–189 making into reusable tool, 184–186

Filters, MP3 player, 561–563 findChildren( ), 199

Floating point numbers, 22–24 flush, as manipulator, 17

for loops, iteration structures, 484 Form views

dynamic form models, 395 for MP3 player, 568–569 overview of, 400–402

FormDialog, 400

FormFactory, 399

FormModel, 397–399, 405–409

Forms

defined, 393

dynamic model, 393–397

FormView, 395, 400–402

Forward declarations, 175, 580–582

Frameworks, library, 178–179 friend

keyword, 55–56

functions, 366–369

Functions, 105–133

declaring, 106–107

declaring inline, 126–127

defining, 464

ellipsis (. . .) and, 542 exceptions, 488–489

exercises and review questions, 130–133 global, 114

hiding, 154–155

inline vs. macro expansion, 127–130 invoking with QMetaObject, 344 main( ), 24–25

operator overloading as, 111–116 with optional arguments, 109–111 overloading, 107–109, 154 overloading on const-ness, 124–126 overriding, 154

overview of, 105

passing parameters by reference, 118–121 passing parameters by value, 116–117 prototypes, 106–107

public, 54

QObjects can never be passed by value to any, 192

Qt naming conventions, 90 references to const, 121–122 return values, 122

returning references from, 122–124 scope, 465, 467

templates, 214–216

with variable-length argument lists, 542–543

virtual, 414