Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
5.0.0
-
None
Description
In Qt 5, QVariant::Type is deprecated and replaced with QMetaType::Type
However, QVariant::type() returns QVariant::Type, and this is source incompatible with QMetaType::Type.
For example, http://doc-snapshot.qt-project.org/5.0/qnetworkrequest.html#Attribute-enum has many (obsolete) warnings.
But replacing the QVariant types with QMetaType types causes compilation errors where QVariant::type() is used.
e.g. static QByteArray headerValue(QNetworkRequest::KnownHeaders..) in qnetworkreply.cpp
The compilation error can be avoided by casting to int, but I cannot just change the documentation to talk about a different type than what the API makes available.
Attachments
Issue Links
- is required for
-
QTBUG-24001 Qt Network API Freeze
- Closed