QTableView date format
-
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" ?
-
Hi,
AFAIK, the shortest way is to implement a subclass of QStyledItemDelegate and reimplement the displayTextMethod to return the date as you want it
-