|
QFont | currentFont |
| Application QFont by default.
|
|
QString | fontTextFormat |
|
◆ FontButton() [1/2]
FontButton::FontButton |
( |
QWidget * | parent = 0 | ) |
|
Constructor Creates a default FontButton initialized with QApplication font
◆ FontButton() [2/2]
FontButton::FontButton |
( |
const QFont & | currentFont, |
|
|
QWidget * | parent = 0 ) |
Constructor Creates a FontButton with a given font
◆ browseFont
void FontButton::browseFont |
( |
| ) |
|
|
slot |
browse() opens a pop up where the user can select a new font. browse() is automatically called when the button is clicked.
◆ currentFontChanged
void FontButton::currentFontChanged |
( |
const QFont & | | ) |
|
|
signal |
Fired anytime the current font changed. Programmatically or by the user via the file dialog that pop up when clicking on the button.
◆ fontTextFormat()
QString FontButton::fontTextFormat |
( |
| ) |
const |
◆ setFontTextFormat()
void FontButton::setFontTextFormat |
( |
const QString & | fontTextFormat | ) |
|
◆ fontTextFormat
QString FontButton::fontTextFormat |
|
readwrite |
This property holds the format of the text of the pushbutton. These expressions may be used in place of the current font:
- fff family
- sss pointSize with suffix "pt". e.g. "9pt"
- ss pointSize with no suffix. e.g. "9"
- www full name weight e.g. Bold (if font is bold)
- ww weight. e.g. 50 (if font is normal)
- biu 3 character string where the first character is 'b' if bold or - otherwise, the second character is 'i' if the font italic or - otherwise and the third characis is 'u' if the font is underline or '-' otherwise. e.g. "bi-" if the font is bold and italic but not underline
- bbb 'bold' if bold, nothing otherwise
- bb 'b' if bold, nothing otherwise
- iii 'italic' if italic, nothing otherwise
- ii 'i' if italic, nothing otherwise
- uuu 'underline' if underline, nothing otherwise
- uu 'u' if underline, nothing otherwise Note that the listing order matches the replacement order. fff-sss by default.
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/fontButton.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/fontButton.cpp