1
Qt's doc表示QDir::entryInfoList
可以接受多個排序條件,但怎麼做對我來說還不清楚。使用QDir :: entryInfoList中的多個條件進行排序
This enum describes the sort options available to QDir, e.g. for entryList() and entryInfoList().
The sort value is specified by OR-ing together values from the following list:
QDir::Name 0x00 Sort by name.
QDir::Time 0x01 Sort by time (modification time).
:
(snip)
我認爲OR-ing
需要以某種方式完成由現在想不出如何(我覺得要回去和審查位移?),但可能有人告訴我怎麼樣?欣賞它。
(反正這種描述是不明確的,作爲高級語言的文檔?)
你怎麼能使用兩種以上的'排序'? –
然後你簡單地把更多的價值或在一起。 –