QtScrollDial Class Reference

The QtScrollDial provides a scroll widget with SVG graphics. More...

#include <qtscrolldial.h>

Collaboration diagram for QtScrollDial:
[legend]

List of all members.

Public Member Functions

 QtScrollDial (QWidget *parent=NULL)
 ~QtScrollDial ()
void setSkin (const QString &skin)
QString skin () const

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *ev)
virtual void paintEvent (QPaintEvent *ev)
QPoint popupPosition ()
void init ()

Properties

QString skin

Detailed Description

The QtScrollDial provides a scroll widget with SVG graphics.

QtScrollDial is a custom widget and behaves like a slider. If clicked a popup window appears where the user can change the value.


Constructor & Destructor Documentation

QtScrollDial::QtScrollDial ( QWidget *  parent = NULL  ) 

Constructor of the QAbstractSlider with parent as Parent.

QtScrollDial::~QtScrollDial (  ) 

Destructor


Member Function Documentation

void QtScrollDial::mousePressEvent ( QMouseEvent *  ev  )  [protected, virtual]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

References popupPosition(), ScrollDialPopup::setRange(), and ScrollDialPopup::setValue().

void QtScrollDial::paintEvent ( QPaintEvent *  ev  )  [protected, virtual]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

QPoint QtScrollDial::popupPosition (  )  [protected]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Referenced by mousePressEvent().

void QtScrollDial::setSkin ( const QString &  skin  ) 

With this function you can set the skin that will be displayed in the widget.

        QtScrollDial * scroll = new QtScrollDial(this);
        scroll->setSkin("Beryl");

This function has to be called before using the QtScrollDial.

See also:
skin()

References ScrollDialPopup::setSkin().


Property Documentation

QString QtScrollDial::skin [read, write]

This function returns the actual skin name. If no skin has been set the return value is "".

        QtScrollDial * scroll = new QtScrollDial(this);
        scroll->setSkin("Beryl");
        qDebug() << scroll->skin();
See also:
setSkin()

The documentation for this class was generated from the following files:

Generated on Wed Nov 25 17:57:34 2009 for Embedded Widgets by  doxygen 1.6.1