diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index cc63b5227e9c58f89c87d64c2190c6f09adb1550..f5ff6907f708ffa53ca4d1fb7712a03abe6751fc 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -14,14 +14,20 @@ android:label="Qt UI Viewer" android:launchMode="singleTask" android:screenOrientation="unspecified" android:exported="true"> <intent-filter> - <action android:name="android.intent.action.MAIN"/> - <category android:name="android.intent.category.LAUNCHER"/> + <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <intent-filter> - <action android:name="android.intent.action.VIEW"/> - <category android:name="android.intent.category.DEFAULT"/> - <category android:name="android.intent.category.BROWSABLE"/> - <data android:scheme="qtdesignviewer"/> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.BROWSABLE" /> + <data android:scheme="qtdesignviewer" /> + </intent-filter> + <intent-filter> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.BROWSABLE" /> + <category android:name="android.intent.category.DEFAULT" /> + <data android:host="designviewer.qt.io" android:scheme="https" /> </intent-filter> <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/> <meta-data android:name="android.app.arguments" android:value="-- %%INSERT_APP_ARGUMENTS%% --"/> diff --git a/src/backend.cpp b/src/backend.cpp index 3e4568e0e5dc3d892ccd6f0840d30c019253ad3c..a94691d8566e3c094f9bdc31fb09b6dfd4bab826 100644 --- a/src/backend.cpp +++ b/src/backend.cpp @@ -39,6 +39,7 @@ Backend::Backend(QObject *parent) { // This will allow us to open the app with the QR code QDesktopServices::setUrlHandler("qtdesignviewer", this, "parseDesignViewerUrl"); + QDesktopServices::setUrlHandler("https", this, "parseDesignViewerUrl"); } void Backend::initialize()