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:

Qt Code:
  1. void WeltZeit::on_ENtimeEdit_timeChanged(const QTime &time)
  2. {
  3. QTime enTime = ui->ENtimeEdit->time();
  4. enTime.addSecs(3600); //adds an hour
  5. ui->DEtimeEdit->setTime(enTime);
  6. }
To copy to clipboard, switch view to plain text mode