Qt Android 获取SQLite创建的文件目录

    科技2024-12-29  15

    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”

    Processed: 0.011, SQL: 8