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