Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTableView date format
killerman last edited by
I have a QTableView that imports data from SQL Database using QSqlRelationalTableModel.
In one column i have date but it shows in ""yyyy-MM-dd" format. How can I change it to "dd-MM-yyyy" ?
AFAIK, the shortest way is to implement a subclass of QStyledItemDelegate and reimplement the displayTextMethod to return the date as you want it