How to handle URI activation in WinRT
-
how do i handle OnActivated in my Qt app? https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh779670.aspx
in the windows sample it's an override
https://code.msdn.microsoft.com/windowsapps/Association-Launching-535d2cec/sourcecode?fileId=43564&pathId=512958551
virtual void OnActivated(Windows::ApplicationModel::Activation::IActivatedEventArgs^ e) override;in qt it's placed in m_argv but no signal is emitted that i can listen for to handle it
https://github.com/qtproject/qtbase/blob/dev/src/winmain/qtmain_winrt.cpp#L196
m_argv.append(qstrdup(arg.constData()));there's no reference to https://github.com/qtproject/qtbase/search?utf8=✓&q=ActivationKind%3A%3AProtocol which is neecessary to handle uri activation
https://code.msdn.microsoft.com/windowsapps/Association-Launching-535d2cec/sourcecode?fileId=43564&pathId=376504347
if (e->Kind == Windows::ApplicationModel::Activation::ActivationKind::Protocol)when running my app with
start "" "magnet:?xt=urn:btih:3D0E4579BFF79AE7E293DEA26706B4CBACE43CDC"
it's not in my qApp->arguments()
D:\repo\qbittorrent\winrt\src\debug\qbittorrent.exe -ServerName:App.AppXj9ptmnre2c04jk6zsvq8kxtadgtw06mg.mca