Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to select multipule photos in IOS native photo picker called from Qt QFileDialog
Forum Updated to NodeBB v4.3 + New Features

How to select multipule photos in IOS native photo picker called from Qt QFileDialog

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 417 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nimaaghliN Offline
    nimaaghliN Offline
    nimaaghli
    wrote on last edited by
    #1

    I am trying to select multiple photos from photo library in IOS,below code is suggested by QT to call native photo selector but as soon as i select first photo the photo selector closes and i have the file name and directory to that single file. Now i am wondering how can i select multiple photos in same native ios photo selector and access their directories in dialog.selectedFiles()

    const QStringList picturesLocations =QStandardPaths::standardLocations(QStandardPaths::PicturesLocation);
    QFileDialog dialog(this, tr("Open File"));
    dialog.setFileMode(QFileDialog::ExistingFiles);
    dialog.setDirectory( picturesLocations.last());
    dialog.exec();
    qDebug() << "Selected Pictures " <<dialog.selectedFiles().first();
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved