[Interest] HowTo get rid of QNetworkConfigurationManager-is-deprecated-warnings

Thiago Macieira thiago.macieira at intel.com
Thu Jun 17 05:20:22 CEST 2021


On Wednesday, 16 June 2021 13:39:37 PDT ekke wrote:
> I really need the classes for my Qt 5.15 mobile apps. It works well on
> Android and for iOS I'm using Apple's Reachability classes. On Qt6 it
> will be easier, because I can use QNetworkInformation for Android and iOS.

Ok, I see.

Well, the only way is to edit qtnetworkglobal.h and make the #define not 
happen:

#if defined(Q_CC_INTEL) || (defined(Q_CC_MSVC) && _MSC_VER < 1910)
#define QT_DEPRECATED_BEARER_MANAGEMENT
#else
#define QT_DEPRECATED_BEARER_MANAGEMENT QT_DEPRECATED_VERSION_5_15
#endif

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering





More information about the Interest mailing list