Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QPlatformCursor Class

TheQPlatformCursor class provides information about pointer device events (movement, buttons), and requests to change the currently displayed cursor.More...

Header:#include <QPlatformCursor>
Since: Qt 4.8
Inherits:QObject

Public Functions

QPlatformCursor(QPlatformScreen * screen)
virtual voidchangeCursor(QCursor * widgetCursor, QWidget * widget) = 0
virtual voidpointerEvent(const QMouseEvent & event)
virtual QPointpos() const
virtual voidsetPos(const QPoint & pos)
  • 29 public functions inherited fromQObject

Additional Inherited Members

  • 1 property inherited fromQObject
  • 1 public slot inherited fromQObject
  • 1 signal inherited fromQObject
  • 7 static public members inherited fromQObject
  • 8 protected functions inherited fromQObject

Detailed Description

TheQPlatformCursor class provides information about pointer device events (movement, buttons), and requests to change the currently displayed cursor.

Note thatQPlatformCursor does not include any graphics for display. An application that sets aQCursor may provide its own graphics.

See alsoQPlatformCursorImage.

Member Function Documentation

QPlatformCursor::QPlatformCursor(QPlatformScreen * screen)

Constructs aQPlatformCursor for the givenscreen.

[pure virtual]void QPlatformCursor::changeCursor(QCursor * widgetCursor,QWidget * widget)

This method is called by Qt whenever the cursor graphic should be changed.

Implementation of this method is mandatory for a subclass ofQPlatformCursor.

widgetCursor is a pointer to theQCursor that should be displayed.

widget is a pointer to the widget currently displayed atQCursor::pos(). Note that this may be 0 if the current position is not occupied by a displayed widget.

See alsoQCursor::pos().

[virtual]void QPlatformCursor::pointerEvent(constQMouseEvent & event)

This method is called by Qt whenever aQMouseEvent is generated by the underlying pointer input.event is a reference to theQMouseEvent in question. A default do-nothing implementation is provided.

[virtual]QPoint QPlatformCursor::pos() const

See alsosetPos().

[virtual]void QPlatformCursor::setPos(constQPoint & pos)

See alsopos().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp