QTimeEdit set unselectable
-
Hi
I don't think there is an option to make the QTimeEdit widget 100% nonclickable.
Outside of setDisabled(true), but that alter how it looks.Why not just use a label then?
QDateTime dateTime = dateTime.currentDateTime();
QString timeString = dateTime.toString("hh-mm-ss");
ui->label->setText( timeString); -
I had the same problem and made a subclass QLineView derived from QLineEdit tellsubway. Then, i reimplemented void setReadOnly(bool) and added a member var QPalette activePalette_