Qml, Image, source, QUrl, png, githubAPI
-
wrote on 27 Mar 2023, 10:47 last edited by
The problem is weird, i want to use github as simple platform to keep images/txt files in repository for loading into module but Image do not want to load png from repository. I'm getting this error
qrc:/content/qml/RightPanel.qml:29:21: QML Image: Error decoding: https://raw.githubusercontent.com/WeleSS2/CapybaraNEWS/main/1142710/DEV_25.03.2023_CapybaraTestRelease/icon.png: Unsupported image format
But when i try to load it into discord or open in web everything is fine. I heard that i should use OpenSSL and certification? But to be honest i don't know anything about OpenSSL so i don't know did it can help or not.
Part of qml code.
ColumnLayout { Image { Layout.alignment: Qt.AlignCenter width: 200 * mainwindow.baseScale height: 200 * mainwindow.baseScale source: "http://raw.githubusercontent.com/WeleSS2/CapybaraNEWS/main/1142710/DEV_25.03.2023_CapybaraTestRelease/icon.png" }
-
wrote on 27 Mar 2023, 12:58 last edited by
It was stupid problem, but when moved forward and ignoring it i found out how to fix it. You need to download additionaly WebEngine module or Qt Image Formats.
-
1/2