45 #include <QtGui/qframe.h> 88 Qt::Alignment alignment()
const;
89 void setAlignment(Qt::Alignment);
91 void setWordWrap(
bool on);
92 bool wordWrap()
const;
100 bool hasScaledContents()
const;
101 void setScaledContents(
bool);
104 #ifndef QT_NO_SHORTCUT 110 bool openExternalLinks()
const;
111 void setOpenExternalLinks(
bool open);
113 void setTextInteractionFlags(Qt::TextInteractionFlags flags);
114 Qt::TextInteractionFlags textInteractionFlags()
const;
116 void setSelection(
int,
int);
117 bool hasSelectedText()
const;
119 int selectionStart()
const;
123 void setPixmap(
const QPixmap &);
124 #ifndef QT_NO_PICTURE 128 void setMovie(
QMovie *movie);
135 void linkActivated(
const QString& link);
136 void linkHovered(
const QString& link);
153 QT3_SUPPORT_CONSTRUCTOR
QLabel(
QWidget *parent,
const char*
name, Qt::WindowFlags f=0);
155 Qt::WindowFlags f=0);
157 QWidget *parent=0,
const char*
name=0, Qt::WindowFlags f=0);
158 QT3_SUPPORT
void setAlignment(
int alignment);
161 inline void setAlignment(
Qt::AlignmentFlag flag) { setAlignment((Qt::Alignment)flag); }
void paintEvent(QPaintEvent *)
This event handler can be reimplemented in a subclass to receive paint events passed in event...
The QKeyEvent class describes a key event.
bool wordWrap
the label's word-wrapping policy
int margin
the width of the margin
#define QT_END_NAMESPACE
This macro expands to.
The QMovie class is a convenience class for playing movies with QImageReader.
Qt::TextFormat textFormat
the label's text format
static void clear(QVariant::Private *d)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
int indent
the label's text indent in pixels
Qt::TextInteractionFlags textInteractionFlags
Specifies how the label should interact with user input if it displays text.
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool scaledContents
whether the label will scale its contents to fill all available space.
void changeEvent(QEvent *)
This event handler can be reimplemented to handle state changes.
Qt::Alignment alignment
the alignment of the label's contents
The QMouseEvent class contains parameters that describe a mouse event.
bool event(QEvent *e)
Reimplemented Function
The QRect class defines a rectangle in the plane using integer precision.
The QLabel widget provides a text or image display.
QPixmap pixmap
the label's pixmap
bool openExternalLinks
Specifies whether QLabel should automatically open links using QDesktopServices::openUrl() instead of...
The QPixmap class is an off-screen image representation that can be used as a paint device...
QSize sizeHint() const
em>Reimplemented Function
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
QString text
the label's text
The QPaintEvent class contains event parameters for paint events.
The QPicture class is a paint device that records and replays QPainter commands.
The QEvent class is the base class of all event classes.
bool hasSelectedText
whether there is any text selected
The QFrame class is the base class of widgets that can have a frame.
The QFocusEvent class contains event parameters for widget focus events.
int open(const char *, int,...)
QString selectedText
the selected text