Qt Android 获取SQLite创建的文件目录
代码
QString filePath
= QDir
::currentPath();
QDir
*dir
= new QDir(filePath
);
QStringList filter
;
QList
<QFileInfo
> *fileInfo
= new QList
<QFileInfo
>(dir
->entryInfoList(filter
));
for(int i
= 0; i
< fileInfo
->count(); i
++)
{
qDebug() << fileInfo
->at(i
).fileName();
}
打印
D libBunApp_arm64-v8a.so: “.” D libBunApp_arm64-v8a.so: “…” D libBunApp_arm64-v8a.so: “DB.db”
转载请注明原文地址:https://blackberry.8miu.com/read-35707.html