Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44833

Add support for FilePicker on Windows Phone 8.1

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.6.0 RC
    • 5.4.1, 5.5.0
    • None
    • Qt 5.4.1, Windows Phone 8.1

    • WinRT
    • qtbase 296422f

      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?
      	}
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            samuelnevala Samuel Nevala
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes