|
| CompositionRenderer (QWidget *parent=nullptr) |
|
| ~CompositionRenderer () |
|
void | paint (QPainter *) override |
|
void | setCirclePos (const QPointF &pos) |
|
QSize | sizeHint () const override |
|
bool | animationEnabled () const |
|
int | circleColor () const |
|
int | circleAlpha () const |
|
| ArthurFrame (QWidget *parent) |
|
void | paintDescription (QPainter *p) |
|
void | loadDescription (const QString &filename) |
|
void | setDescription (const QString &htmlDesc) |
|
void | loadSourceFile (const QString &fileName) |
|
bool | preferImage () const |
|
| QWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()) |
|
| ~QWidget () |
|
int | devType () const override |
|
WId | winId () const |
|
void | createWinId () |
|
WId | internalWinId () const |
|
WId | effectiveWinId () const |
|
QStyle * | style () const |
|
void | setStyle (QStyle *) |
|
bool | isWindow () const |
|
bool | isModal () const |
|
Qt::WindowModality | windowModality () const |
|
void | setWindowModality (Qt::WindowModality windowModality) |
|
bool | isEnabled () const |
|
bool | isEnabledTo (const QWidget *) const |
|
QRect | frameGeometry () const |
|
const QRect & | geometry () const |
|
QRect | normalGeometry () const |
|
int | x () const |
|
int | y () const |
|
QPoint | pos () const |
|
QSize | frameSize () const |
|
QSize | size () const |
|
int | width () const |
|
int | height () const |
|
QRect | rect () const |
|
QRect | childrenRect () const |
|
QRegion | childrenRegion () const |
|
QSize | minimumSize () const |
|
QSize | maximumSize () const |
|
int | minimumWidth () const |
|
int | minimumHeight () const |
|
int | maximumWidth () const |
|
int | maximumHeight () const |
|
void | setMinimumSize (const QSize &) |
|
void | setMinimumSize (int minw, int minh) |
|
void | setMaximumSize (const QSize &) |
|
void | setMaximumSize (int maxw, int maxh) |
|
void | setMinimumWidth (int minw) |
|
void | setMinimumHeight (int minh) |
|
void | setMaximumWidth (int maxw) |
|
void | setMaximumHeight (int maxh) |
|
QSize | sizeIncrement () const |
|
void | setSizeIncrement (const QSize &) |
|
void | setSizeIncrement (int w, int h) |
|
QSize | baseSize () const |
|
void | setBaseSize (const QSize &) |
|
void | setBaseSize (int basew, int baseh) |
|
void | setFixedSize (const QSize &) |
|
void | setFixedSize (int w, int h) |
|
void | setFixedWidth (int w) |
|
void | setFixedHeight (int h) |
|
QPointF | mapToGlobal (const QPointF &) const |
|
QPoint | mapToGlobal (const QPoint &) const |
|
QPointF | mapFromGlobal (const QPointF &) const |
|
QPoint | mapFromGlobal (const QPoint &) const |
|
QPointF | mapToParent (const QPointF &) const |
|
QPoint | mapToParent (const QPoint &) const |
|
QPointF | mapFromParent (const QPointF &) const |
|
QPoint | mapFromParent (const QPoint &) const |
|
QPointF | mapTo (const QWidget *, const QPointF &) const |
|
QPoint | mapTo (const QWidget *, const QPoint &) const |
|
QPointF | mapFrom (const QWidget *, const QPointF &) const |
|
QPoint | mapFrom (const QWidget *, const QPoint &) const |
|
QWidget * | window () const |
|
QWidget * | nativeParentWidget () const |
|
QWidget * | topLevelWidget () const |
|
const QPalette & | palette () const |
|
void | setPalette (const QPalette &) |
|
void | setBackgroundRole (QPalette::ColorRole) |
|
QPalette::ColorRole | backgroundRole () const |
|
void | setForegroundRole (QPalette::ColorRole) |
|
QPalette::ColorRole | foregroundRole () const |
|
const QFont & | font () const |
|
void | setFont (const QFont &) |
|
QFontMetrics | fontMetrics () const |
|
QFontInfo | fontInfo () const |
|
QCursor | cursor () const |
|
void | setCursor (const QCursor &) |
|
void | unsetCursor () |
|
void | setMouseTracking (bool enable) |
|
bool | hasMouseTracking () const |
|
bool | underMouse () const |
|
void | setTabletTracking (bool enable) |
|
bool | hasTabletTracking () const |
|
void | setMask (const QBitmap &) |
|
void | setMask (const QRegion &) |
|
QRegion | mask () const |
|
void | clearMask () |
|
void | render (QPaintDevice *target, const QPoint &targetOffset=QPoint(), const QRegion &sourceRegion=QRegion(), RenderFlags renderFlags=RenderFlags(DrawWindowBackground|DrawChildren)) |
|
void | render (QPainter *painter, const QPoint &targetOffset=QPoint(), const QRegion &sourceRegion=QRegion(), RenderFlags renderFlags=RenderFlags(DrawWindowBackground|DrawChildren)) |
|
Q_INVOKABLE QPixmap | grab (const QRect &rectangle=QRect(QPoint(0, 0), QSize(-1, -1))) |
|
void | grabGesture (Qt::GestureType type, Qt::GestureFlags flags=Qt::GestureFlags()) |
|
void | ungrabGesture (Qt::GestureType type) |
|
QString | styleSheet () const |
|
QString | windowTitle () const |
|
void | setWindowIcon (const QIcon &icon) |
|
QIcon | windowIcon () const |
|
void | setWindowIconText (const QString &) |
|
QString | windowIconText () const |
|
void | setWindowRole (const QString &) |
|
QString | windowRole () const |
|
void | setWindowFilePath (const QString &filePath) |
|
QString | windowFilePath () const |
|
void | setWindowOpacity (qreal level) |
|
qreal | windowOpacity () const |
|
bool | isWindowModified () const |
|
QString | accessibleName () const |
|
void | setAccessibleName (const QString &name) |
|
QString | accessibleDescription () const |
|
void | setAccessibleDescription (const QString &description) |
|
void | setLayoutDirection (Qt::LayoutDirection direction) |
|
Qt::LayoutDirection | layoutDirection () const |
|
void | unsetLayoutDirection () |
|
void | setLocale (const QLocale &locale) |
|
QLocale | locale () const |
|
void | unsetLocale () |
|
bool | isRightToLeft () const |
|
bool | isLeftToRight () const |
|
bool | isActiveWindow () const |
|
void | activateWindow () |
|
void | clearFocus () |
|
void | setFocus (Qt::FocusReason reason) |
|
Qt::FocusPolicy | focusPolicy () const |
|
void | setFocusPolicy (Qt::FocusPolicy policy) |
|
bool | hasFocus () const |
|
void | setFocusProxy (QWidget *) |
|
QWidget * | focusProxy () const |
|
Qt::ContextMenuPolicy | contextMenuPolicy () const |
|
void | setContextMenuPolicy (Qt::ContextMenuPolicy policy) |
|
void | grabMouse () |
|
void | grabMouse (const QCursor &) |
|
void | releaseMouse () |
|
void | grabKeyboard () |
|
void | releaseKeyboard () |
|
int | grabShortcut (const QKeySequence &key, Qt::ShortcutContext context=Qt::WindowShortcut) |
|
void | releaseShortcut (int id) |
|
void | setShortcutEnabled (int id, bool enable=true) |
|
void | setShortcutAutoRepeat (int id, bool enable=true) |
|
bool | updatesEnabled () const |
|
void | setUpdatesEnabled (bool enable) |
|
void | update (int x, int y, int w, int h) |
|
void | update (const QRect &) |
|
void | update (const QRegion &) |
|
void | repaint (int x, int y, int w, int h) |
|
void | repaint (const QRect &) |
|
void | repaint (const QRegion &) |
|
void | stackUnder (QWidget *) |
|
void | move (int x, int y) |
|
void | move (const QPoint &) |
|
void | resize (int w, int h) |
|
void | resize (const QSize &) |
|
void | setGeometry (int x, int y, int w, int h) |
|
void | setGeometry (const QRect &) |
|
QByteArray | saveGeometry () const |
|
bool | restoreGeometry (const QByteArray &geometry) |
|
void | adjustSize () |
|
bool | isVisible () const |
|
bool | isVisibleTo (const QWidget *) const |
|
bool | isHidden () const |
|
bool | isMinimized () const |
|
bool | isMaximized () const |
|
bool | isFullScreen () const |
|
Qt::WindowStates | windowState () const |
|
void | setWindowState (Qt::WindowStates state) |
|
void | overrideWindowState (Qt::WindowStates state) |
|
virtual QSize | minimumSizeHint () const |
|
QSizePolicy | sizePolicy () const |
|
void | setSizePolicy (QSizePolicy) |
|
void | setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical) |
|
virtual int | heightForWidth (int) const |
|
virtual bool | hasHeightForWidth () const |
|
QRegion | visibleRegion () const |
|
void | setContentsMargins (int left, int top, int right, int bottom) |
|
void | setContentsMargins (const QMargins &margins) |
| The setContentsMargins function sets the margins around the widget's contents. More...
|
|
QMargins | contentsMargins () const |
| The contentsMargins function returns the widget's contents margins. More...
|
|
QRect | contentsRect () const |
|
QLayout * | layout () const |
|
void | setLayout (QLayout *) |
|
void | updateGeometry () |
|
void | setParent (QWidget *parent) |
|
void | setParent (QWidget *parent, Qt::WindowFlags f) |
|
void | scroll (int dx, int dy) |
|
void | scroll (int dx, int dy, const QRect &) |
|
QWidget * | focusWidget () const |
|
QWidget * | nextInFocusChain () const |
|
QWidget * | previousInFocusChain () const |
| The previousInFocusChain function returns the previous widget in this widget's focus chain. More...
|
|
bool | acceptDrops () const |
|
void | setAcceptDrops (bool on) |
|
void | addAction (QAction *action) |
|
void | addActions (const QList< QAction * > &actions) |
|
void | insertActions (QAction *before, const QList< QAction * > &actions) |
|
void | insertAction (QAction *before, QAction *action) |
|
void | removeAction (QAction *action) |
|
QList< QAction * > | actions () const |
|
QAction * | addAction (const QString &text) |
|
QAction * | addAction (const QIcon &icon, const QString &text) |
|
QAction * | addAction (const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type=Qt::AutoConnection) |
|
QAction * | addAction (const QIcon &icon, const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type=Qt::AutoConnection) |
|
template<typename... Args, typename = compatible_action_slot_args<Args...>> |
QAction * | addAction (const QString &text, Args &&...args) |
|
template<typename... Args, typename = compatible_action_slot_args<Args...>> |
QAction * | addAction (const QIcon &icon, const QString &text, Args &&...args) |
|
QWidget * | parentWidget () const |
|
void | setWindowFlags (Qt::WindowFlags type) |
|
Qt::WindowFlags | windowFlags () const |
|
void | setWindowFlag (Qt::WindowType, bool on=true) |
|
void | overrideWindowFlags (Qt::WindowFlags type) |
|
Qt::WindowType | windowType () const |
|
QWidget * | childAt (int x, int y) const |
|
QWidget * | childAt (const QPoint &p) const |
|
void | setAttribute (Qt::WidgetAttribute, bool on=true) |
|
bool | testAttribute (Qt::WidgetAttribute) const |
|
QPaintEngine * | paintEngine () const override |
|
void | ensurePolished () const |
|
bool | isAncestorOf (const QWidget *child) const |
|
bool | autoFillBackground () const |
|
void | setAutoFillBackground (bool enabled) |
|
QBackingStore * | backingStore () const |
|
QWindow * | windowHandle () const |
|
QScreen * | screen () const |
|
void | setScreen (QScreen *) |
|
virtual QVariant | inputMethodQuery (Qt::InputMethodQuery) const |
|
Qt::InputMethodHints | inputMethodHints () const |
|
void | setInputMethodHints (Qt::InputMethodHints hints) |
|
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
|
virtual | ~QObject () |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
QString | objectName () const |
|
void | setObjectName (const QString &name) |
|
QBindable< QString > | bindableObjectName () |
|
bool | isWidgetType () const |
|
bool | isWindowType () const |
|
bool | signalsBlocked () const noexcept |
|
bool | blockSignals (bool b) noexcept |
|
QThread * | thread () const |
|
void | moveToThread (QThread *thread) |
|
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
|
void | killTimer (int id) |
|
template<typename T > |
T | findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
template<typename T > |
QList< T > | findChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
template<typename T > |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
const QObjectList & | children () const |
|
void | setParent (QObject *parent) |
|
void | installEventFilter (QObject *filterObj) |
|
void | removeEventFilter (QObject *obj) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
|
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
|
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
|
void | dumpObjectTree () const |
|
void | dumpObjectInfo () const |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
QBindingStorage * | bindingStorage () |
|
const QBindingStorage * | bindingStorage () const |
|
QObject * | parent () const |
|
bool | inherits (const char *classname) const |
|
virtual | ~QPaintDevice () |
|
bool | paintingActive () const |
|
int | width () const |
|
int | height () const |
|
int | widthMM () const |
|
int | heightMM () const |
|
int | logicalDpiX () const |
|
int | logicalDpiY () const |
|
int | physicalDpiX () const |
|
int | physicalDpiY () const |
|
qreal | devicePixelRatio () const |
|
qreal | devicePixelRatioF () const |
|
int | colorCount () const |
|
int | depth () const |
|
|
enum | RenderFlag { DrawWindowBackground = 0x1
, DrawChildren = 0x2
, IgnoreMask = 0x4
} |
|
enum | PaintDeviceMetric {
PdmWidth = 1
, PdmHeight
, PdmWidthMM
, PdmHeightMM
,
PdmNumColors
, PdmDepth
, PdmDpiX
, PdmDpiY
,
PdmPhysicalDpiX
, PdmPhysicalDpiY
, PdmDevicePixelRatio
, PdmDevicePixelRatioScaled
} |
|
void | descriptionEnabledChanged (bool) |
|
void | windowTitleChanged (const QString &title) |
|
void | windowIconChanged (const QIcon &icon) |
|
void | windowIconTextChanged (const QString &iconText) |
|
void | customContextMenuRequested (const QPoint &pos) |
|
void | destroyed (QObject *=nullptr) |
|
void | objectNameChanged (const QString &objectName, QPrivateSignal) |
|
static void | setTabOrder (QWidget *, QWidget *) |
|
static QWidget * | mouseGrabber () |
|
static QWidget * | keyboardGrabber () |
|
static QWidget * | find (WId) |
|
static QWidget * | createWindowContainer (QWindow *window, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) |
|
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
|
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
|
template<typename Func1 , typename Func2 > |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
|
static QMetaObject::Connection ::type | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot) |
|
static QMetaObject::Connection ::type | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
|
template<typename Func1 , typename Func2 > |
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot) |
|
template<typename Func1 , typename Func2 > |
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
|
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
|
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
|
static bool | disconnect (const QMetaObject::Connection &) |
|
template<typename Func1 , typename Func2 > |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
|
template<typename Func1 > |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
|
static qreal | devicePixelRatioFScale () |
|
void | updateMicroFocus (Qt::InputMethodQuery query=Qt::ImQueryAll) |
|
QPixmap | m_tile |
|
bool | m_showDoc = false |
|
bool | m_preferImage = false |
|
QTextDocument * | m_document = nullptr |
|
QString | m_sourceFileName |
|
QScopedPointer< QObjectData > | d_ptr |
|
ushort | painters |
|
| setupUi (QWidget *widget) |
|
template< class T > T | qobject_cast (const QObject *object) |
|
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
|
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
|
| QObjectList |
|
Definition at line 112 of file composition.h.
This event handler, for event event, can be reimplemented in a subclass to receive mouse move events for the widget.
If mouse tracking is switched off, mouse move events only occur if a mouse button is pressed while the mouse is being moved. If mouse tracking is switched on, mouse move events occur even if no mouse button is pressed.
QMouseEvent::pos() reports the position of the mouse cursor, relative to this widget. For press and release events, the position is usually the same as the position of the last mouse move event, but it might be different if the user's hand shakes. This is a feature of the underlying window system, not Qt.
If you want to show a tooltip immediately, while the mouse is moving (e.g., to get the mouse coordinates with QMouseEvent::pos() and show them as a tooltip), you must first enable mouse tracking as described above. Then, to ensure that the tooltip is updated immediately, you must call QToolTip::showText() instead of setToolTip() in your implementation of mouseMoveEvent().
- See also
- setMouseTracking(), mousePressEvent(), mouseReleaseEvent(), mouseDoubleClickEvent(), event(), QMouseEvent, {Scribble Example}
Reimplemented from QWidget.
Definition at line 462 of file composition.cpp.