📄 qwheelevent.3qt
字号:
.TH QWheelEvent 3qt "6 July 1999" "Troll Tech AS" \" -*- nroff -*-.\" Copyright 1992-1999 Troll Tech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQWheelEvent \- Parameters that describe a wheel event.SH SYNOPSIS.br.PP\fC#include <qevent.h>\fR.PPInherits QEvent..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQWheelEvent\fR ( const QPoint & " "pos" ", int " "delta" ", int state )".br.ti -1c.BI "\fBQWheelEvent\fR ( const QPoint & " "pos" ", const QPoint & " "globalPos" ", int " "delta" ", int state )".br.ti -1c.BI "int \fBdelta\fR () const".br.ti -1c.BI "const QPoint& \fBpos\fR () const".br.ti -1c.BI "const QPoint& \fBglobalPos\fR () const".br.ti -1c.BI "int \fBx\fR () const".br.ti -1c.BI "int \fBy\fR () const".br.ti -1c.BI "int \fBglobalX\fR () const".br.ti -1c.BI "int \fBglobalY\fR () const".br.ti -1c.BI "ButtonState \fBstate\fR () const".br.ti -1c.BI "bool \fBisAccepted\fR () const".br.ti -1c.BI "void \fBaccept\fR ()".br.ti -1c.BI "void \fBignore\fR ()".br.in -1c.SH DESCRIPTIONThe QWheelEvent class contains parameters that describe a wheel event..PPWheel events occur when a mouse wheel is turned while the widget has focus. The rotation distance is provided by delta(). If required, both pos() and globalPos() return the mouse pointer location at the time of the event..PPA wheel event contains a special accept flag which tells whether the receiver wants the event. You should call QWheelEvent::accept() if you handle the wheel event, otherwise it will be sent to the parent widget as well..PPThe QWidget::setEnable() function can be used to enable or disable mouse and keyboard events for a widget..PPThe event handlers QWidget::wheelEvent() receive wheel events..PPSee also: QMouseEvent and QWidget::grabMouse()..SH MEMBER FUNCTION DOCUMENTATION.SH "QWheelEvent::QWheelEvent ( const QPoint & pos, const QPoint & globalPos, int delta, int state )"Constructs a wheel event object..SH "QWheelEvent::QWheelEvent ( const QPoint & pos, int delta, int state )"Constructs a wheel event object..SH "void QWheelEvent::accept ()"Sets the accept flag of the wheel event object..PPSetting the accept parameter indicates that the receiver of the event wants the wheel event. Unwanted wheel events are sent to the parent widget..PPThe accept flag is set by default..PPSee also: ignore()..SH "int QWheelEvent::delta () const"Returns the distance that the wheel is rotated, expressed in multiples or divisions of WHEEL_DELTA, which is set at 120 currently.A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user..PPThe WHEEL_DELTA constant was set to 120 by the wheel mouse vendors to allow building finer-resolution wheels in the future, including perhaps a freely-rotating wheel with no notches. The expectation is that such a device would send more messages per rotation, but with a smaller value in each message..SH "const QPoint & QWheelEvent::globalPos () const"Returns the global position of the mouse pointer \fIat the time\fR of the event. This is important on asynchronous window systems like X11: Whenever you move your widgets around in response to mouse evens, globalPos() can differ a lot from the current pointer position QCursor::pos()..PPSee also: globalX() and globalY()..SH "int QWheelEvent::globalX () const"Returns the global X position of the mouse pointer at the time of the event.PPSee also: globalY() and globalPos()..SH "int QWheelEvent::globalY () const"Returns the global Y position of the mouse pointer at the time of the event.PPSee also: globalX() and globalPos()..SH "void QWheelEvent::ignore ()"Clears the accept flag parameter of the wheel event object..PPClearing the accept parameter indicates that the event receiver does not want the wheel event. Unwanted wheel events are sent to the parent widget..PPThe accept flag is set by default..PPSee also: accept()..SH "bool QWheelEvent::isAccepted () const"Returns TRUE if the receiver of the event handles the wheel event..SH "const QPoint & QWheelEvent::pos () const"Returns the position of the mouse pointer, relative to the widget that received the event..PPSee also: x() and y()..SH "ButtonState QWheelEvent::state () const"Returns the keyboard modifier flags..PPThe returned value is \fCShiftButton, ControlButton\fR and \fCAltButton\fR OR'ed together..SH "int QWheelEvent::x () const"Returns the X position of the mouse pointer, relative to the widget that received the event..PPSee also: y() and pos()..SH "int QWheelEvent::y () const"Returns the Y position of the mouse pointer, relative to the widget that received the event..PPSee also: x() and pos()..SH "SEE ALSO".BR http://www.troll.no/qt/qwheelevent.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS. See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -