Manpage logo

QwtArrowButton - Arrow Button.

NAME  SYNOPSIS  Public Member Functions  Protected Member Functions  Detailed Description  Constructor & Destructor Documentation  QwtArrowButton::QwtArrowButton (int num, Qt::ArrowType arrowType, QWidget *parent = NULL) [explicit]  QwtArrowButton::˜QwtArrowButton () [virtual]  Member Function Documentation  QSize QwtArrowButton::arrowSize (Qt::ArrowType arrowType, const QSize &boundingSize) const [protected], [virtual]  Qt::ArrowType QwtArrowButton::arrowType () const  void QwtArrowButton::drawArrow (QPainter * painter, const QRect & r,Qt::ArrowType arrowType) const [protected], [virtual]  void QwtArrowButton::drawButtonLabel (QPainter * painter) [protected],[virtual]  void QwtArrowButton::keyPressEvent (QKeyEvent * event) [override],[protected], [virtual]  QRect QwtArrowButton::labelRect () const [protected], [virtual]  QSize QwtArrowButton::minimumSizeHint () const [override], [virtual]  int QwtArrowButton::num () const  void QwtArrowButton::paintEvent (QPaintEvent * event) [override],[protected], [virtual]  QSize QwtArrowButton::sizeHint () const [override], [virtual]  Author 

NAME

QwtArrowButton − Arrow Button.

SYNOPSIS

#include <qwt_arrow_button.h>

Inherits QPushButton.

Public Member Functions

QwtArrowButton (int num, Qt::ArrowType, QWidget *parent=NULL)
virtual ˜QwtArrowButton ()
Destructor.
Qt::ArrowType arrowType () const
The direction of the arrows.
int num () const
The number of arrows.
virtual QSize sizeHint () const override
virtual QSize minimumSizeHint () const override
Return a minimum size hint.

Protected Member Functions

virtual void paintEvent (QPaintEvent *) override
virtual void keyPressEvent (QKeyEvent *) override
autoRepeat for the space keys
virtual void drawButtonLabel (QPainter *)
Draw the button label.
virtual void drawArrow (QPainter *, const QRect &, Qt::ArrowType) const
virtual QRect labelRect () const
virtual QSize arrowSize (Qt::ArrowType, const QSize &boundingSize) const

Detailed Description

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.

Definition at line 23 of file qwt_arrow_button.h.

Constructor & Destructor Documentation

QwtArrowButton::QwtArrowButton (int num, Qt::ArrowType arrowType, QWidget *parent = NULL) [explicit]

Parameters

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

Definition at line 55 of file qwt_arrow_button.cpp.

QwtArrowButton::˜QwtArrowButton () [virtual]

Destructor.

Definition at line 79 of file qwt_arrow_button.cpp.

Member Function Documentation

QSize QwtArrowButton::arrowSize (Qt::ArrowType arrowType, const QSize &boundingSize) const [protected], [virtual]

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

Parameters

arrowType Arrow type
boundingSize
Bounding size

Returns

Size of the arrow

Definition at line 296 of file qwt_arrow_button.cpp.

Qt::ArrowType QwtArrowButton::arrowType () const

The direction of the arrows.

Definition at line 88 of file qwt_arrow_button.cpp.

void QwtArrowButton::drawArrow (QPainter * painter, const QRect & r,Qt::ArrowType arrowType) const [protected], [virtual]

Draw an arrow int a bounding rectangle

Parameters

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

Definition at line 215 of file qwt_arrow_button.cpp.

void QwtArrowButton::drawButtonLabel (QPainter * painter) [protected],[virtual]

Draw the button label.

Parameters

painter Painter

See also

The Qt Manual for QPushButton

Definition at line 143 of file qwt_arrow_button.cpp.

void QwtArrowButton::keyPressEvent (QKeyEvent * event) [override],[protected], [virtual]

autoRepeat for the space keys

Definition at line 326 of file qwt_arrow_button.cpp.

QRect QwtArrowButton::labelRect () const [protected], [virtual]

Returns

the bounding rectangle for the label

Definition at line 104 of file qwt_arrow_button.cpp.

QSize QwtArrowButton::minimumSizeHint () const [override], [virtual]

Return a minimum size hint.

Definition at line 268 of file qwt_arrow_button.cpp.

int QwtArrowButton::num () const

The number of arrows.

Definition at line 96 of file qwt_arrow_button.cpp.

void QwtArrowButton::paintEvent (QPaintEvent * event) [override],[protected], [virtual]

Paint event handler

Parameters

event Paint event

Definition at line 130 of file qwt_arrow_button.cpp.

QSize QwtArrowButton::sizeHint () const [override], [virtual]

Returns

a size hint

Definition at line 259 of file qwt_arrow_button.cpp.

Author

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


Updated 2026-06-01 - jenkler.se | uex.se