#include #include class QTimer; class QSpinBox; class QLabel; class QPushButton; class QImage; class TriangleFractalChaos : public QWidget { Q_OBJECT public: TriangleFractalChaos(QWidget *parent = 0); private: QSpinBox *magnification; QLabel *magnificationLabel; QSpinBox *delay; QLabel *delayLabel; QPushButton *generate; QImage *dots; QPoint startingPoints[3]; QPoint lastPoint; QTimer *drawTimer; void startDrawing(); private slots: void drawDot(); void toggleDraw(); };