QwtTextLabel(3)
π QwtTextLabel(3) β Qwt User's Guide π
okay bestie, welcome to the QwtTextLabel page from the Qwt User's Guide β this is the one, the icon, the moment. sit down, hydrate, let's get into it π«Ά
β¨ NAME β¨
QwtTextLabel β literally just... a widget. a label. that's it. that's the whole name section, they gave us nothing else and honestly? respect. π
πΈ SYNOPSIS πΈ
#include <qwt_text_label.h>
Inherited by QwtLegendItem. π
π Public Slots
void clear ()
void setText (const QString &, QwtText::TextFormat
textFormat=QwtText::AutoText)
virtual void setText (const QwtText &)
π¦ Public Member Functions
QwtTextLabel (QWidget *parent=NULL)
QwtTextLabel (const QwtText &, QWidget *parent=NULL)
virtual ~QwtTextLabel ()
virtual int heightForWidth (int) const
int indent () const
int margin () const
virtual QSize minimumSizeHint () const
void setIndent (int)
void setMargin (int)
virtual QSize sizeHint () const
const QwtText & text () const
QRect textRect () const
π Protected Member Functions
virtual void drawContents (QPainter *)
virtual void drawText (QPainter *, const QRect &)
virtual void paintEvent (QPaintEvent *e)
π Detailed Description π
A Widget which displays a QwtText. that's it bestie, that's the whole vibe. it's a label, it holds a QwtText, it shows it. main character energy but make it a QWidget. β¨
π Constructor & Destructor Documentation π
QwtTextLabel::QwtTextLabel (QWidget *parent = NULL) [explicit]
Constructs an empty label. no text, no drama, a blank canvas, a fresh start, the beginning of a journey π
Parameters:
parentβ Parent widget
QwtTextLabel::QwtTextLabel (const QwtText &text, QWidget *parent = NULL) [explicit]
Constructs a label that displays the text, text. yes the parameter is literally called text and yes the doc says "the text, text". they ate with that one fr fr π
Parameters:
parentβ Parent widgettextβ Text
π₯ Member Function Documentation π₯
int QwtTextLabel::heightForWidth (int width) const [virtual]
Returns the preferred height for this widget, given the width. so like... you tell it how wide you are, it tells you how tall it wants to be. communication. we love a healthy relationship π«Ά
Parameters:
widthβ Width
void QwtTextLabel::paintEvent (QPaintEvent *event) [protected], [virtual]
Qt paint event. this is where the actual drawing happens, the moment the label shows up and shows out β¨
Parameters:
eventβ Paint event
Reimplemented in QwtLegendItem.
void QwtTextLabel::setIndent (int indent)
Set label's text indent in pixels. giving your text some personal space, as it deserves π
Parameters:
indentβ Indentation in pixels
void QwtTextLabel::setMargin (int margin)
Set label's margin in pixels. the little buffer zone. the bubble around the vibe. π
Parameters:
marginβ Margin in pixels
void QwtTextLabel::setText (const QString &text, QwtText::TextFormat textFormat = QwtText::AutoText) [slot]
Change the label's text, keeping all other QwtText attributes. so like, the text changes but everything else about it stays exactly as it was β a glow-up, not a whole new person. π
Parameters:
textβ New texttextFormatβ Format of text
See also: QwtText
void QwtTextLabel::setText (const QwtText &text) [virtual], [slot]
Change the label's text. that's the whole thing. short and sweet, periodt. πΈ
Parameters:
textβ New text
Reimplemented in QwtLegendItem.
QRect QwtTextLabel::textRect () const
Calculate the rect for the text in widget coordinates. it's giving "here's exactly where the text lives" π¦
Returns:
- Text rect
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. so nobody actually hand-wrote this, the robot did it, and honestly the robot served. π
okay that's the whole page bestie, you're officially a QwtTextLabel expert, no cap. this was Version 5.2.3, dated Tue Nov 20 2012 β an absolute vintage icon, a classic, and it still slays. mwah. πππβ
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms