I have a Qt project. In my QML, I include the svg image.
Image {
id: logo
width: 90
height: 25
source: "logoHorizontalWhite.svg"
y:25
anchors.horizontalCenter: parent.horizontalCenter
}
I added XML and svg support to my .pro file
QT += qml quick widgets svg xml
on iOS and Desktop it displays correctly, on Android I get an error message:
W / EGL_emulation (13992): eglSurfaceAttrib not implemented W / OpenGLRenderer (13992): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa4a10520, error = EGL_SUCCESS D / Qt (13992): (null) :_ (null) :_ (null) failed_new index 0: 90 W / Qt (13992): qrc: /LoginForm.qml: 21 ((null)): qrc: /LoginForm.qml: 21: 5: QML Image: invalid image data: qrc: /logoHorizontalWhite.svg W / EGL_emulation (13992): eglSurfaceAttrib not implemented W / OpenGLRenderer (13992): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa4a10520, error = EGL_SUCCESS
, ? !