QFileSystemModel QTableView Date Modified highlighting
问题 I am trying to make a little file browser using QFileSystemModel and QTableView. I was wondering if it is possible to highlight rows with same value in "Date Modified" column, for instance if I have two or more files which been modified today row gets highlighted in green, those modified yesterday highlighted in green but lighter shade, etc. 回答1: To change the background color there are several options such as: override the data() method of the model so that the return value associated with