Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qml, Image, source, QUrl, png, githubAPI
Forum Updated to NodeBB v4.3 + New Features

Qml, Image, source, QUrl, png, githubAPI

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 281 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jacubus
    wrote on last edited by
    #1

    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"
                        }
    
    1 Reply Last reply
    0
    • J Offline
      J Offline
      jacubus
      wrote on last edited by
      #2

      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 Reply Last reply
      1
      • SGaistS SGaist has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved