kdk::KLabel(3) Library Functions Manual kdk::KLabel(3) NAME kdk::KLabel - qlabel SYNOPSIS #include Inherits QLabel. Signals void enterWidget () void leaveWidget () void clicked (bool clicked) void doubleClicked () Public Member Functions KLabel (QWidget *parent=nullptr) void setLabelType (KLabelType type=KLabelType::DataType) labelNormalTypeIconAndTextType void setDataHightColor (bool flag) / void setPixmap (const QPixmap &pixmap) pixmap void setPixmap (QIcon icon, int width, int height) icon const QPixmap * pixmap () const void setText (const QString &str) QString text () void setBackgroundColor (bool flag, QColor color=Qt::white) void setHighlightBackground (bool flag) void setBorderRadius (int bottomLeft, int topLeft, int topRight, int bottomRight) void setBorderRadius (int radius) void setWordWrap (bool flag) bool wordWrap () void setFontColor (QColor color) void setFontColorRole (QPalette::ColorRole role) colorRole void setTristate (bool flag) bool isTristate () Protected Member Functions void paintEvent (QPaintEvent *event) QSize sizeHint () const void resizeEvent (QResizeEvent *event) virtual void enterEvent (QEvent *event) virtual void leaveEvent (QEvent *event) void mousePressEvent (QMouseEvent *event) void mouseReleaseEvent (QMouseEvent *event) void mouseDoubleClickEvent (QMouseEvent *event) Detailed Description qlabel Since 2.4.1.0 Member Function Documentation void kdk::KLabel::clicked (bool clicked) [signal] Parameters clicked Since 3.0.1.0 void kdk::KLabel::doubleClicked () [signal] Since 3.0.1.0 void kdk::KLabel::enterWidget () [signal] Since 3.0.1.0 bool kdk::KLabel::isTristate () Returns Since 3.0.1.0 void kdk::KLabel::leaveWidget () [signal] Since 3.0.1.0 const QPixmap * kdk::KLabel::pixmap () const Returns void kdk::KLabel::setBackgroundColor (bool flag, QColor color = Qt::white) Parameters flag void kdk::KLabel::setBorderRadius (int bottomLeft, int topLeft, int topRight, int bottomRight) Parameters bottomLeft topLeft topRight bottomRight void kdk::KLabel::setBorderRadius (int radius) Parameters radius void kdk::KLabel::setDataHightColor (bool flag) / Parameters flag void kdk::KLabel::setFontColor (QColor color) Parameters color Since 2.5.2.0 void kdk::KLabel::setFontColorRole (QPalette::ColorRole role) colorRole Parameters role Since 3.0.1.0 void kdk::KLabel::setHighlightBackground (bool flag) Since 2.5.2.0 Parameters flag void kdk::KLabel::setLabelType (KLabelType type = KLabelType::DataType) labelNormalTypeIconAndTextType Parameters type void kdk::KLabel::setPixmap (const QPixmap & pixmap) pixmap Parameters pixmap void kdk::KLabel::setPixmap (QIcon icon, int width, int height) icon Parameters icon Since 2.5.2.0-0k0.3 void kdk::KLabel::setText (const QString & str) Since 2.5.2.0 Parameters str void kdk::KLabel::setTristate (bool flag) Parameters flag Since 3.0.1.0 void kdk::KLabel::setWordWrap (bool flag) Since 2.5.2.0 Parameters flag QString kdk::KLabel::text () Since 2.5.2.0 Returns bool kdk::KLabel::wordWrap () Since 2.5.2.0 Returns Author Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. LIBKYSDK-APPLICATIONS Version version:3.0 kdk::KLabel(3)