Qt Code:
  1. QTime time = QTime::currentTime();
  2. QString text = time.toString("hh:mm:ss");
  3. if ((time.second() % 2) == 0)
  4. text[2] = ' ';
  5. ui->lcdNumber->display(text);
To copy to clipboard, switch view to plain text mode 

Am using the code above: Its not displaying the hour,minute and the second together
please help me