A widget for displaying characters available in a preset font, and allowing users to select an individual character.
More...
#include <characterwidget.h>
A widget for displaying characters available in a preset font, and allowing users to select an individual character.
Definition at line 67 of file characterwidget.h.
◆ CharacterWidget()
CharacterWidget::CharacterWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ character()
QChar CharacterWidget::character |
( |
| ) |
const |
|
inline |
◆ characterSelected
void CharacterWidget::characterSelected |
( |
QChar |
character | ) |
|
|
signal |
Emitted when a character is selected in the widget.
◆ columns()
int CharacterWidget::columns |
( |
| ) |
const |
|
inline |
Returns the number of columns of characters shown in the widget.
Definition at line 86 of file characterwidget.h.
◆ font()
QFont CharacterWidget::font |
( |
| ) |
const |
|
inline |
◆ mouseMoveEvent()
void CharacterWidget::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mousePressEvent()
void CharacterWidget::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ paintEvent()
void CharacterWidget::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
◆ setCharacter
void CharacterWidget::setCharacter |
( |
QChar |
character | ) |
|
|
slot |
◆ setColumns
void CharacterWidget::setColumns |
( |
int |
columns | ) |
|
|
slot |
Sets the number of columns of characters to show in the widget.
- Since
- QGIS 3.0
Definition at line 99 of file characterwidget.cpp.
◆ setFont
void CharacterWidget::setFont |
( |
const QFont & |
font | ) |
|
|
slot |
◆ setFontSize
void CharacterWidget::setFontSize |
( |
double |
fontSize | ) |
|
|
slot |
Sets the font size (in points) to render in the widget.
- Since
- QGIS 3.0
Definition at line 70 of file characterwidget.cpp.
◆ setFontStyle
void CharacterWidget::setFontStyle |
( |
const QString & |
fontStyle | ) |
|
|
slot |
Sets the font style to show in the widget.
- Since
- QGIS 3.0
Definition at line 78 of file characterwidget.cpp.
◆ sizeHint()
QSize CharacterWidget::sizeHint |
( |
| ) |
const |
|
override |
◆ squareSize()
int CharacterWidget::squareSize |
( |
| ) |
const |
|
inline |
Returns the size (in pixels) of the square used to render each character preview.
Definition at line 91 of file characterwidget.h.
◆ updateFontMerging
void CharacterWidget::updateFontMerging |
( |
bool |
enable | ) |
|
|
slot |
◆ character
QChar CharacterWidget::character |
|
readwrite |
◆ columns
int CharacterWidget::columns |
|
readwrite |
◆ font
QFont CharacterWidget::font |
|
readwrite |
The documentation for this class was generated from the following files: