43 #include <QtWidgets/qtwidgetsglobal.h>
44 #include <QtWidgets/qframe.h>
45 #include <QtGui/qpicture.h>
46 #include <QtGui/qtextdocument.h>
61 Q_PROPERTY(
bool scaledContents READ hasScaledContents WRITE setScaledContents)
63 Q_PROPERTY(
bool wordWrap READ wordWrap WRITE setWordWrap)
64 Q_PROPERTY(
int margin READ margin WRITE setMargin)
65 Q_PROPERTY(
int indent READ indent WRITE setIndent)
66 Q_PROPERTY(
bool openExternalLinks READ openExternalLinks WRITE setOpenExternalLinks)
67 Q_PROPERTY(Qt::TextInteractionFlags textInteractionFlags READ textInteractionFlags
68 WRITE setTextInteractionFlags)
69 Q_PROPERTY(
bool hasSelectedText READ hasSelectedText)
79 #if QT_DEPRECATED_SINCE(6,6)
85 #if QT_DEPRECATED_SINCE(6,6)
103 void setWordWrap(
bool on);
104 bool wordWrap()
const;
112 bool hasScaledContents()
const;
113 void setScaledContents(
bool);
116 #ifndef QT_NO_SHORTCUT
122 bool openExternalLinks()
const;
123 void setOpenExternalLinks(
bool open);
125 void setTextInteractionFlags(Qt::TextInteractionFlags
flags);
126 Qt::TextInteractionFlags textInteractionFlags()
const;
128 void setSelection(
int,
int);
129 bool hasSelectedText()
const;
131 int selectionStart()
const;
136 #ifndef QT_NO_PICTURE
140 void setMovie(
QMovie *movie);
158 #ifndef QT_NO_CONTEXTMENU
175 #ifndef QT_NO_SHORTCUT
The QEvent class is the base class of all event classes. Event objects contain event parameters.
The QFocusEvent class contains event parameters for widget focus events. \inmodule QtGui.
The QFrame class is the base class of widgets that can have a frame.
QSize sizeHint() const override
bool event(QEvent *e) override
void paintEvent(QPaintEvent *) override
void changeEvent(QEvent *) override
The QKeyEvent class describes a key event.
The QLabel widget provides a text or image display.
void linkActivated(const QString &link)
void linkHovered(const QString &link)
The QMouseEvent class contains parameters that describe a mouse event.
The QMovie class is a convenience class for playing movies with QImageReader.
The QPaintEvent class contains event parameters for paint events. \inmodule QtGui.
The QPicture class is a paint device that records and replays QPainter commands.
The QPixmap class is an off-screen image representation that can be used as a paint device.
The QRect class defines a rectangle in the plane using integer precision.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QString class provides a Unicode character string.
std::function< QVariant(const QUrl &)> ResourceProvider
union Alignment_ Alignment
#define Q_DISABLE_COPY(Class)
GLuint GLsizei const GLchar * label
[43]
label setAlignment(Qt::AlignLeft|Qt::AlignTop)
[0]
file open(QIODevice::ReadOnly)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent