GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
QwtPanner(3) Qwt User's Guide QwtPanner(3)

QwtPanner -

#include <qwt_panner.h>
Inherited by QwtPlotPanner.


void moved (int dx, int dy)
 
void panned (int dx, int dy)
 


QwtPanner (QWidget *parent)
 
virtual ~QwtPanner ()
 
const QCursor cursor () const
 
virtual bool eventFilter (QObject *, QEvent *)
 
void getAbortKey (int &key, int &state) const
 
void getMouseButton (int &button, int &buttonState) const
 
bool isEnabled () const
 
bool isOrientationEnabled (Qt::Orientation) const
 
Qt::Orientations orientations () const
 
void setAbortKey (int key, int state=Qt::NoButton)
 
void setCursor (const QCursor &)
 
void setEnabled (bool)
 
void setMouseButton (int button, int buttonState=Qt::NoButton)
 
void setOrientations (Qt::Orientations)
 


virtual void paintEvent (QPaintEvent *)
 
virtual void widgetKeyPressEvent (QKeyEvent *)
 
virtual void widgetKeyReleaseEvent (QKeyEvent *)
 
virtual void widgetMouseMoveEvent (QMouseEvent *)
 
virtual void widgetMousePressEvent (QMouseEvent *)
 
virtual void widgetMouseReleaseEvent (QMouseEvent *)
 

QwtPanner provides panning of a widget.
QwtPanner grabs the contents of a widget, that can be dragged in all directions. The offset between the start and the end position is emitted by the panned signal.
QwtPanner grabs the content of the widget into a pixmap and moves the pixmap around, without initiating any repaint events for the widget. Areas, that are not part of content are not painted while panning in in process. This makes panning fast enough for widgets, where repaints are too slow for mouse movements.
For widgets, where repaints are very fast it might be better to implement panning manually by mapping mouse events into paint events.

Creates an panner that is enabled for the left mouse button.
Parameters:
parent Parent widget to be panned

Returns:
Cursor that is active while panning
See also:
setCursor()

Event filter. When isEnabled() the mouse events of the observed widget are filtered.
See also:
widgetMousePressEvent(), widgetMouseReleaseEvent(), widgetMouseMoveEvent()

Returns:
true when enabled, false otherwise
See also:
setEnabled, eventFilter()

Return true if a orientatio is enabled
See also:
orientations(), setOrientations()

Signal emitted, while the widget moved, but panning is not finished.
Parameters:
dx Offset in horizontal direction
 
dy Offset in vertical direction

Paint event. Repaint the grabbed pixmap on its current position and fill the empty spaces by the background of the parent widget.
Parameters:
pe Paint event

Signal emitted, when panning is done
Parameters:
dx Offset in horizontal direction
 
dy Offset in vertical direction

Change the abort key The defaults are Qt::Key_Escape and Qt::NoButton
Parameters:
key Key ( See Qt::Keycode )
 
state State

Change the cursor, that is active while panning The default is the cursor of the parent widget.
Parameters:
cursor New cursor
See also:
setCursor()

En/disable the panner. When enabled is true an event filter is installed for the observed widget, otherwise the event filter is removed.
Parameters:
on true or false
See also:
isEnabled(), eventFilter()

Change the mouse button The defaults are Qt::LeftButton and Qt::NoButton

Set the orientations, where panning is enabled The default value is in both directions: Qt::Horizontal | Qt::Vertical
/param o Orientation

Handle a key press event for the observed widget.
Parameters:
ke Key event
See also:
eventFilter(), widgetKeyReleaseEvent()

Handle a key release event for the observed widget.
See also:
eventFilter(), widgetKeyReleaseEvent()

Handle a mouse move event for the observed widget.
Parameters:
me Mouse event
See also:
eventFilter(), widgetMousePressEvent(), widgetMouseReleaseEvent()

Handle a mouse press event for the observed widget.
Parameters:
me Mouse event
See also:
eventFilter(), widgetMouseReleaseEvent(), widgetMouseMoveEvent(),

Handle a mouse release event for the observed widget.
Parameters:
me Mouse event
See also:
eventFilter(), widgetMousePressEvent(), widgetMouseMoveEvent(),

Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 Version 5.2.3

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.