I changed the above code, As follows: and only I want to paint a rectangle by blue and I want to delay 1000 msec for it and also such as Traffic Lights, It is Blinking
Code:
#include <QWidget>
{
Q_OBJECT
public:
protected:
public slots:
};
Code:
#include "lines.h"
#include <QPainter>
#include <QTimer>
{
connect(timer,
SIGNAL(timeout
()),
this,
SLOT(blue
(QPainter*pa
)));
timer->start(1000);
}
{Q_UNUSED(e);
blue(&qp);
}
{
pa->setBrush(brush);
pa->drawRect(200,200,200,200);
}
Added after 1 15 minutes:
Mr anda skoa, Mr wysota and other Mr, please help me.this post is not a spam.