Using Qt’s Built-in Dialogs: Font, Progress, and Print Pickers
Font Selection Dialog
The QFontDialog widget lets users pick a typeface and its attributes at run time. Typical workflow:
Create the dialog.
Seed it with an initial font.
Show it modally and read the chosen font if the user accepts.
void pickFont()
{
QFontDialog dlg;
dlg.setWindowTitle("Font Picker");
dlg.setCurrentFont( ...
Posted on Mon, 05 Oct 2026 16:20:49 +0000 by Dan Coates
Managing Text Printing and Cursor Position in Qt's QPlainTextEdit
Qt Text Document Architecture for Printing and Cursor Management
Qt's text editing widgets, such as QPlainTextEdit, separate the visual presentation of text from its underlying data model. This architectural design relies on the QTextDocument class to store and manage the actual text content and its properties, while QPlainTextEdit itself focus ...
Posted on Wed, 09 Sep 2026 16:35:54 +0000 by ed01