ElidedLabel

ElidedLabel

ElidedLabel

Inherits from QLabel

Public Functions

Name
ElidedLabel(QWidget * parent =nullptr)
ElidedLabel(const QString & text, QWidget * parent =nullptr)
voidsetText(const QString & text)
voidsetText(const char * text)
const QString &text() const
Qt::TextElideModeelideMode()
voidsetElideMode(Qt::TextElideMode mode)

Protected Functions

Name
voidresizeEvent(QResizeEvent * event) override

Public Properties

Name
QStringtext
Qt::TextElideModeelideMode

Public Functions Documentation

function ElidedLabel

explicit ElidedLabel(
    QWidget * parent =nullptr
)

function ElidedLabel

explicit ElidedLabel(
    const QString & text,
    QWidget * parent =nullptr
)

function setText

void setText(
    const QString & text
)

function setText

inline void setText(
    const char * text
)

function text

inline const QString & text() const

function elideMode

inline Qt::TextElideMode elideMode()

function setElideMode

inline void setElideMode(
    Qt::TextElideMode mode
)

Protected Functions Documentation

function resizeEvent

void resizeEvent(
    QResizeEvent * event
) override

Public Property Documentation

property text

QString text;

property elideMode

Qt::TextElideMode elideMode;

Updated on 2024-11-06 at 17:10:29 +0000