C++ (Qt)void QWidget::showFullScreen () [slot]
C++ (Qt)while(!asleep()) sheep++;
C++ (Qt) QTimer *timer = new QTimer(this); //... connect(timer, SIGNAL(timeout()), this, SLOT(update())); timer->start(1000);
QTimer *timer = new QTimer(this);
void MainFr::paintEvent(QPaintEvent *){ QPainter painter(this); painter.setRenderHint(QPainter::Antialiasing); painter.setPen(Qt::darkGreen); painter.setBrush(QBrush(Qt::darkGreen, Qt::SolidPattern)); // Чем красим painter.drawRect(2, 2, Rect_size-2, Rect_size); timer->start(1000); painter.drawRect(455-Rect_size-2, 2, Rect_size, Rect_size); painter.drawRect(910-Rect_size-2, 2, Rect_size, Rect_size); painter.drawRect(1366-Rect_size-2, 2, Rect_size, Rect_size);}