Hi,
I am developing an adnroid app which can calculate the time in other time zones.
For displaying the time I am useing the QTimeEdit element.
Now I want to that the user also can type in a time.
But I don't get it to work that it get's the typed time.
I tried it like that:
void WeltZeit
::on_ENtimeEdit_timeChanged(const QTime &time
) {
QTime enTime
= ui
->ENtimeEdit
->time
();
enTime.addSecs(3600); //adds an hour
ui->DEtimeEdit->setTime(enTime);
}
void WeltZeit::on_ENtimeEdit_timeChanged(const QTime &time)
{
QTime enTime = ui->ENtimeEdit->time();
enTime.addSecs(3600); //adds an hour
ui->DEtimeEdit->setTime(enTime);
}
To copy to clipboard, switch view to plain text mode
Bookmarks