Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.7, 6.8.0
-
macOS 14.7.1 (M1 CPU); Xcode 15.4; iOS Simulator 17.5 + iOS 16.6.1 (iPad Air M1)
-
-
6026a5aa2 (dev), 51b747689 (6.8)
Description
Code
#include <QtWidgets> #include <QStandardPaths> int main(int argc, char *argv[]) { QApplication app(argc, argv); qDebug("Started"); QPushButton btn_pics("Open image picker"); QObject::connect(&btn_pics, &QPushButton::clicked, &app, []{ qDebug("Opening native QFileDialog..."); QFileDialog d; d.setDirectory(QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last()); d.exec(); qDebug() << "QFileDialog closed. Selected" << d.selectedUrls(); }); btn_pics.show(); return app.exec(); }
Steps to reproduce
- Use Qt Creator to build and run the attached project for iOS in Debug mode
- Tap "Open image picker"
- (A permissions dialog should have opened) Select "Allow Full Access"
Expected outcomes
After selecting "Allow Full Access", the user can proceed to choose an image
Actual outcomes
After selecting "Allow Full Access", the app freezes
Notes
After terminating the frozen app and re-running it, tapping "Open image picker" now skips the permissions dialog and the user can proceed to choose an image.
Attachments
Issue Links
- relates to
-
QTBUG-64074 Qt NSPhotoLibrarySupport should use Photos Framework replacing deprecated AssetsLibrary Framework
- Reported
For Gerrit Dashboard: QTBUG-130973 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
603376,4 | QIOSFileDialog: present image picker view without 'parent' | dev | qt/qtbase | Status: MERGED | +2 | 0 |
603439,2 | QIOSFileDialog: present image picker view without 'parent' | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |