Qwt Programmer's Manual

QwtArrowButton


NAME

QwtArrowButton

SYNOPSIS

#include <qwt_arrbtn.h>

DESCRIPTION

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.

INHERITED CLASSES

QPushButton

PUBLIC MEMBERS

QwtArrowButton
Constructor
dir
Return direction
num
Return number of arrows
sizeHint
Return size hint

SIGNALS AND SLOTS

See Qt Manual on QPushButton

PROTECTED MEMBERS

drawButtonLabel
draw button label


MEMBER FUNCTION DESCRIPTION


QwtArrowButton::QwtArrowButton

Constructor

Syntax

QwtArrowButton::QwtArrowButton(int num, Direction dir, QWidget *parent, const char *name = 0)

Parameters

int num
Number of arrows
Direction dir
Direction. One of QwtArrowButton::Up, QwtArrowButton::Down, QwtArrowButton::Left, or QwtArrowButton::Right
QWidget *parent
parent widget
const char *name
name

QwtArrowButton::dir

Return the direction of the arrows

Syntax

Direction QwtArrowButton::dir()

QwtArrowButton::drawButtonLabel

Draw the button label

Syntax

void QwtArrowButton::drawButtonLabel(QPainter *p)

Access

Protected

Parameters

QPainter *p

Description

See Qt Manual on QPushButton

QwtArrowButton::num

Return the number of arrows

Syntax

int QwtArrowButton::num()

QwtArrowButton::sizeHint

Return a size hint

Syntax

QSize QwtArrowButton::sizeHint()

Description

See Qt manual on QWidget::sizeHint
Qwt Widget Library 12/31/97