DOKK / manpages / debian 10 / libqwt5-doc / QwtArrowButton.3.en
QwtArrowButton(3) Qwt User's Guide QwtArrowButton(3)

QwtArrowButton -

#include <qwt_arrow_button.h>


QwtArrowButton (int num, Qt::ArrowType, QWidget *parent=NULL)
virtual ~QwtArrowButton ()
Qt::ArrowType arrowType () const
virtual QSize minimumSizeHint () const
int num () const
virtual QSize sizeHint () const


virtual QSize arrowSize (Qt::ArrowType, const QSize &boundingSize) const
virtual void drawArrow (QPainter *, const QRect &, Qt::ArrowType) const
virtual void drawButtonLabel (QPainter *p)
virtual void keyPressEvent (QKeyEvent *)
virtual QRect labelRect () const
virtual void paintEvent (QPaintEvent *event)

Arrow Button.

A push button with one or more filled triangles on its front. An Arrow button can have 1 to 3 arrows in a row, pointing up, down, left or right.

Parameters:

num Number of arrows
arrowType see Qt::ArowType in the Qt docs.
parent Parent widget

Calculate the size for a arrow that fits into a rect of a given size

Parameters:

arrowType Arrow type
boundingSize Bounding size

Returns:

Size of the arrow

Draw an arrow int a bounding rect

Parameters:

painter Painter
r Rectangle where to paint the arrow
arrowType Arrow type

Draw the button label. Parameters:

painter Painter

See also:

The Qt Manual on QPushButton

Returns:

the bounding rect for the label

Paint event handler

Parameters:

event Paint event

Returns:

a size hint

Generated automatically by Doxygen for Qwt User's Guide from the source code.

Tue Nov 20 2012 Version 5.2.3