hi
every time when i press the push Button Timer will Add 1 sec
I Want To Start Timer And Goes Up Like Stopwatch
{
ui->setupUi(this);
_second=0;
_time.setHMS(0,0,0,0);
startTimer(1000);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_timerEvent_clicked()
{
_second++;
QTime t
= _time.
addSecs(_second
);
ui->LCurrenTtime->setText(t.toString());
}
{
ui->setupUi(this);
_second=0;
_time.setHMS(0,0,0,0);
startTimer(1000);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_timerEvent_clicked()
{
_second++;
QTime t= _time.addSecs(_second);
ui->LCurrenTtime->setText(t.toString());
}
To copy to clipboard, switch view to plain text mode
what im doing wrong?
Bookmarks