Provides static methods to read style information from QLabel widgets.
More...
#include <LabelStyleReader.h>
|
| static QFont | font (const QLabel *label) |
| | Gets the font used in the label.
|
| |
| static int | fontSize (const QLabel *label) |
| | Gets the font size of the label in points.
|
| |
| static QColor | textColor (const QLabel *label) |
| | Gets the text color of the label.
|
| |
Provides static methods to read style information from QLabel widgets.
This includes reading font, font size, and text color from a QLabel.
◆ font()
| QFont LabelStyleReader::font |
( |
const QLabel * |
label | ) |
|
|
static |
Gets the font used in the label.
- Parameters
-
| label | Pointer to the QLabel. |
- Returns
- The QFont applied to the label.
◆ fontSize()
| int LabelStyleReader::fontSize |
( |
const QLabel * |
label | ) |
|
|
static |
Gets the font size of the label in points.
- Parameters
-
| label | Pointer to the QLabel. |
- Returns
- Font size in points.
◆ textColor()
| QColor LabelStyleReader::textColor |
( |
const QLabel * |
label | ) |
|
|
static |
Gets the text color of the label.
- Parameters
-
| label | Pointer to the QLabel. |
- Returns
- The QColor used for the label's text.
The documentation for this class was generated from the following files: