|
Q3270
A Qt-based 3270 Terminal Emulator
|
Signals | |
| void | fontChanged (QFont font) |
Public Member Functions | |
| FontWidget (QWidget *parent=nullptr) | |
| FontWidget - the dialog for font selection @params parent - the parent widget. | |
| void | setFont (QFont font) |
| FontWidget::setFont - Set the currently selected font @params font - the chosen font. | |
| QFont | currentFont () |
| FontWidget::currentFont - return the currently selected font. | |
| FontWidget::FontWidget | ( | QWidget * | parent = nullptr | ) |
FontWidget - the dialog for font selection @params parent - the parent widget.
FontWidget is used to allow the user to select fonts from the installed font list.
| QFont FontWidget::currentFont | ( | ) |
FontWidget::currentFont - return the currently selected font.
| void FontWidget::setFont | ( | QFont | font | ) |
FontWidget::setFont - Set the currently selected font @params font - the chosen font.
Try to select the font in the widget. The font family is first selected from the list, then the styles and sizes are updated, and finally, the requested font size and style are matched. If no match is possible, the first item in each list is selected.