The FloatingLabel class. A QLabel where the text floats from left to right and vice versa so there's no need for word wrapping anymore.
More...
#include <FloatingLabel.h>
|
| FloatingLabel (QWidget *parent=nullptr) |
|
void | setFloatingText (const QString &text) |
| Use this method insteas of using QLabel::setText() More...
|
|
void | setCharsPerSecond (int charsPerSecond) |
| set the desired speed More...
|
|
virtual void | showEvent (QShowEvent *e) override |
|
|
void | paintEvent (QPaintEvent *event) override |
|
void | resizeEvent (QResizeEvent *event) override |
|
virtual void | languageChanged () |
|
virtual void | skinChanged () |
|
The FloatingLabel class. A QLabel where the text floats from left to right and vice versa so there's no need for word wrapping anymore.
◆ setCharsPerSecond()
void Gui::FloatingLabel::setCharsPerSecond |
( |
int |
charsPerSecond | ) |
|
set the desired speed
- Parameters
-
charsPerSecond | a good value is 3 |
◆ setFloatingText()
void Gui::FloatingLabel::setFloatingText |
( |
const QString & |
text | ) |
|
Use this method insteas of using QLabel::setText()
- Parameters
-