Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.4.1, 5.5.0
-
None
-
Qt 5.4.1, Windows Phone 8.1
-
-
qtbase 296422f
Description
UPDATE: The attached file contains a fix which adds support for file and folder pickers under Windows Phone 8.1. The fix contains all necessary steps but has to be refined/cleaned up.
Windows Phone 8.1 file pickers use the continuation scheme where the picked file(s) are passed back to the calling application when the application comes back to foreground.
The picked files are passed as "IContinuationActivatedEventArgs" in the "onActivated" method (see here for full source code: https://code.msdn.microsoft.com/windowsapps/File-picker-sample-9f294cba).
To support continuation, the "onActivated" method in "qtmain_winrt.cpp" has to be changed so that the "IContinuationActivatedEventArgs" are somehow stored.
HRESULT onActivated(Core::ICoreApplicationView *, Activation::IActivatedEventArgs *args) { //... current code //NEW: Activation::IContinuationActivatedEventArgs *continuationArgs; if (SUCCEEDED(args->QueryInterface(&continuationArgs))) { // store the args somehow? } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-47959 winrt: Native files dialog not used.
- Closed
- relates to
-
QTBUG-44972 Support protocol activation in WinRT
- Closed