Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
#ifndef WIGGLYWIDGET_H #define WIGGLYWIDGET_H #include <QBasicTimer> #include <QWidget> class WigglyWidget : public QWidget { Q_OBJECT public: WigglyWidget(QWidget *parent); public slots: void setText(const QString &newText) { text = newText; } protected: void paintEvent(QPaintEvent *event); void timerEvent(QTimerEvent *event); private: QBasicTimer timer; QString text; int step; }; #endif
Copyright © 2004 Trolltech | Trademarks | Qt 4.0.0-b1 |