You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »



p, li { white-space: pre-wrap; }

#include "dialog.h"

#include "ui_dialog.h"



Dialog::Dialog(QWidget *parent)

    : QDialog(parent), ui(new Ui::Dialog)

{

    ui->setupUi(this);

    timer = new QTimer(this);

    connect(timer, SIGNAL(timeout()), this, SLOT(update()));

    timer->start(1000);

    Arvo=0;



}



Dialog::~Dialog()

{

    delete ui;

}





void Dialog::update()

{

   Arvo++;

   ui->dial->setValue(Arvo);

}




  • No labels
You must log in to comment.