The QtScrollDial provides a scroll widget with SVG graphics. More...
#include <qtscrolldial.h>
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 |
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.
QtScrollDial::QtScrollDial | ( | QWidget * | parent = NULL |
) |
Constructor of the QAbstractSlider with parent
as Parent.
QtScrollDial::~QtScrollDial | ( | ) |
Destructor
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.
References ScrollDialPopup::setSkin().
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();