Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.9.0
-
-
2025wk22s1-2QtforAndroid
Description
In Qt Android projects, OpenSSL is required for HTTPS functionality (QSslSocket, QNetworkAccessManager, WebEngine, etc.). However, Qt does not provide a reliable, team-friendly way to enforce or manage OpenSSL deployment:
- The mechanism in Qt Creator to include "SSL” generates a .pri file with hard-coded, machine-specific paths — not suitable for version control or CI.
- Missing SSL causes silent runtime failures (e.g., supportsSsl() returns false) with no build-time warnings or errors.
- There is no standard QT += openssl Kind of mechanism or CMake equivalent to enforce presence and deployment of OpenSSL libraries.
It would be very nice if we can have some kind of qmake/CMake helper (e.g., QT += openssl or find_package(Qt6 REQUIRED COMPONENTS OpenSSL)) that:
- Fails configuration if OpenSSL is not found
- Automatically adds libssl.so and libcrypto.so to androiddeployqt via ANDROID_EXTRA_LIBS or CMake equivalents