qml 获取文件夹的修改时间
时间: 2023-10-10 18:07:28 浏览: 201
获取文件的修改时间属性
在QML中获取文件夹的修改时间可以使用Qt的QFileInfo类。首先,你需要在QML中导入Qt的Core模块:
```qml
import QtQuick 2.15
import QtQuick.Controls 2.15
import Qt.labs.folderlistmodel 2.15
import Qt.labs.platform 1.1
import Qt.labs.settings 1.1
import QtQuick.Layouts 1.15
import QtQuick.Window 2.15
import QtQuick.Controls.Material 2.15
import QtQuick.Controls.Universal 2.15
import QtQuick.Controls.impl 2.15
import Qt.labs.folderlistmodel 2.15
import QtQuick.Controls.Imagine 2.15
import QtQuick.Dialogs 1.3
import QtQuick.LocalStorage 2.15
import QtQuick.XmlListModel 2.15
import QtQuick.Particles 2.15
import QtQuick.Particles.impl 2.15
import QtQuick.Templates 2.15
import QtQuick.VirtualKeyboard 2.15
import QtWebEngine 1.4
import Qt.labs.platform 1.1
import Qt.labs.settings 1.1
import QtWebEngine.Experimental 1.4
import QtQuick.Controls.Material.impl 2.15
import QtQuick.Layouts.impl 1.15
import Qt.labs.folderlistmodel.impl 2.15
import QtQuick.Controls.Universal.impl 2.15
import QtQuick.Controls.impl 2.15
import QtQuick.Controls.Universal.impl.impl 2.15
import QtQuick.Controls.Universal.impl.impl.impl 2.15
import QtQuick.Controls.Universal.impl.impl.impl.impl 2.15
import QtQuick.Controls.Imagine.impl 2.15
import QtQuick.Dialogs.impl 1.3
import QtQuick.LocalStorage.impl 2.15
import QtQuick.XmlListModel.impl 2.15
import QtQuick.Particles.impl.impl 2.15
import QtQuick.Particles.impl.impl.impl 2.15
import QtQuick.Controls.Material.impl.impl 2.15
import QtQuick.Controls.Material.impl.impl.impl 2.15
import QtQuick.Controls.Material.impl.impl.impl.impl 2.15
import Qt.labs.settings.impl 1.1
import QtWebEngine.Experimental.impl 1.4
import Qt.labs.platform.impl 1.1
import QtWebEngine.Experimental.impl.impl 1.4
import Qt.labs.folderlistmodel.impl.impl 2.15
import QtQuick.Controls.Universal.impl.impl 2.15
import QtQuick.Controls.Universal.impl.impl.impl 2.15
import QtQuick.Controls.Universal.impl.impl.impl.impl 2.15
import QtQuick.Controls.Imagine.impl.impl 2.15
import QtQuick.Dialogs.impl.impl 1.3
import QtQuick.LocalStorage.impl.impl 2.15
import QtQuick.XmlListModel.impl.impl 2.15
import QtQuick.Particles.impl.impl.impl 2.15
import QtQuick.Particles.impl.impl.impl.impl 2.15
import QtQuick.Controls.Material.impl.impl.impl 2.15
import QtQuick.Controls.Material.impl.impl.impl.impl 2.15
import QtQuick.Controls.Material.impl.impl.impl.impl.impl 2.15
import Qt.labs.settings.impl.impl 1.1
import QtWebEngine.Experimental.impl.impl 1.4
import Qt.labs.platform.impl.imp
```
阅读全文