Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.4.2, 5.5.0 RC
-
None
-
Android NDK r10d
Qt Creator 3.4.2
Description
The problem occurs only on Android. It's been tested with API Levels 14, 15 and 22.
Steps to reproduce the problem:
- Create a new Qt Quick application in Qt Creator.
- Insert qDebug() << QImageReader::supportedImageFormats(); into main() after the line with QApplication app(argc, argv);. Insert also required header includes at the beginning of file.
- Add kit "Android for armeabi-v7a" in Build & Run settings of the application.
- Run the application on Android and verify that "jpeg" is listed among supported image formats in application output.
- Create a new C++ class in Qt Creator.
- Add a new private static member to the header file of the class:
static QNetworkAccessManager *m_netManager;
Include header of QNetworkAccessManager at the beginning of the file. - Add the following line to the *.cpp file of the new class:
QNetworkAccessManager *TestClass::m_netManager = new QNetworkAccessManager(); - Run your application. The list of supported image formats is shorter and JPEG is missing.