How Did You Do That, Tips and Tricks
summary
Practical, code-level recipes: how to persist window state with QSettings and QWidget::saveGeometry/restoreGeometry (also QMainWindow::saveState/restoreState), export QTextDocument to HTML/PDF/SVG and ODF via QTextDocument->toHtml(), QPrinter, QSvgGenerator, QTextDocumentWriter (Qt 4.4–4.5 features noted), make QLabel text selectable, use QFormLayout and QDialogButtonBox for platform-correct layouts, use QKeySequence::StandardKey for portable shortcuts, setWindowFilePath handling, QMetaObject::invokeMethod/QTimer::singleShot for deferred calls, plus two working demos: SmileyTextEdit (replace emoticons with images) and a FaderWidget that animates resize/fade with QTimeLine.
AI-written summary · about
chapters (12)
- 0:00Introduction and overview
- 1:50Finding tips and tricks resources
- 6:11Giving apps memory with settings
- 11:09Converting text to multiple formats
- 14:43Making labels text selectable
- 17:11Following local OS customs
- 22:28Handling platform-specific shortcuts
- 27:11Setting window file paths
- 30:02Invoking slots without signals
- 32:53Brightening text with smileys
- 39:26Making panels fade and resize
- 51:09Summary and source code
