Q3270
A Qt-based 3270 Terminal Emulator
Loading...
Searching...
No Matches
FontWidget Class Reference
Inheritance diagram for FontWidget:

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.
 

Constructor & Destructor Documentation

◆ FontWidget()

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.

Member Function Documentation

◆ currentFont()

QFont FontWidget::currentFont ( )

FontWidget::currentFont - return the currently selected font.

Returns
The currently selected font.

◆ setFont()

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.


The documentation for this class was generated from the following files: