added getting the path to the file for iOS

This commit is contained in:
vladimir.kuznetsov 2023-09-09 01:29:28 +05:00
parent fdff57da7c
commit 1c7868312d
4 changed files with 45 additions and 11 deletions

View file

@ -8,6 +8,7 @@
#include <QQuickItem>
#include <QStandardPaths>
#include <QUrl>
#include <QtConcurrent>
#ifdef Q_OS_ANDROID
#include "platforms/android/android_controller.h"
@ -58,8 +59,10 @@ QString SystemController::getFileName(const QString &acceptLabel, const QString
{
QString fileName;
#ifdef Q_OS_IOS
MobileUtils::openFile();
MobileUtils mobileUtils;
fileName = mobileUtils.openFile();
CFURLRef url = CFURLCreateWithFileSystemPath(
kCFAllocatorDefault,
CFStringCreateWithCharacters(0, reinterpret_cast<const UniChar *>(fileName.unicode()), fileName.length()),