CCIMXDesktop
 
Loading...
Searching...
No Matches
ScrollingLabel Class Reference

The ScrollingLabel class provides the scrolling label. More...

#include <ScrollingLabel.h>

Inheritance diagram for ScrollingLabel:

Public Member Functions

 ScrollingLabel (QWidget *parent=nullptr)
 Construct a new Scrolling Label object.
 
void setText (const QString &text)
 setText set the text of the label
 

Static Public Attributes

static constexpr const int ANIMATION_INTERVAL = 100
 ANIMATION_INTERVAL the animation interval.
 
static constexpr const short STEP_SHORT = 2
 STEP_SHORT the step short everytime the animations make the text scroll in pix level so, make it larger will speed up the roll process.
 

Protected Member Functions

void resizeEvent (QResizeEvent *) override
 resize hooks
 

Detailed Description

The ScrollingLabel class provides the scrolling label.

Note
this is a simple scrolling label, for text too long, it will roll the text automatically

Constructor & Destructor Documentation

◆ ScrollingLabel()

ScrollingLabel::ScrollingLabel ( QWidget *  parent = nullptr)
explicit

Construct a new Scrolling Label object.

Parameters
parent

Member Function Documentation

◆ setText()

void ScrollingLabel::setText ( const QString &  text)

setText set the text of the label

Parameters
textthe text to set

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