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. How to use https url to load an image in qml?
QtWS25 Last Chance

How to use https url to load an image in qml?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 4 Posters 966 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.
  • ali-aydinA Offline
    ali-aydinA Offline
    ali-aydin
    wrote on last edited by ali-aydin
    #1

    hi,
    every body
    I need to load an image by a url like this:"https://d2f9uwgpmber13.cloudfront.net/public/image_new/26fe75871805b8fa8ffcd1a94778be4c?.jpeg"
    from a randomly chosen website
    in my pc it works very well but in laptop don't work and returns this error:
    "QML Image: TLS initialization failed"
    what is the problem?```
    Image {
    id: name
    anchors.top: flag.bottom
    width: parent.width
    height: parent.height-flag.height

        source:  "https://d2f9uwgpmber13.cloudfront.net/public/image_new/26fe75871805b8fa8ffcd1a94778be4c?.jpeg"
    }
    
    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      It may be SSL issue on your laptop. Issue is not from Qt framework.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      1
      • MarkkyboyM Offline
        MarkkyboyM Offline
        Markkyboy
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zzzzxx
          wrote on last edited by
          #4

          hello,did you solve your problem.can you show me how to solve it?

          MarkkyboyM 1 Reply Last reply
          0
          • Z zzzzxx

            hello,did you solve your problem.can you show me how to solve it?

            MarkkyboyM Offline
            MarkkyboyM Offline
            Markkyboy
            wrote on last edited by Markkyboy
            #5

            @zzzzxx - last time I had this problem, I'm pretty sure I solved it by installing OpenSSL. Also, make sure your device/laptop/phone has internet connection.

            I have a 10 year old Lenovo 64bit laptop. To be sure, I downloaded and installed both 32bit and 64bit OpenSSL;

            https://slproweb.com/products/Win32OpenSSL.html

            For me, to get the new image looking right; I made a few minor adjustments;

            Image {
                id: name
                fillMode: Image.PreserveAspectFit
                anchors.fill: parent
                source: "https://d2f9uwgpmber13.cloudfront.net/public/image_new/26fe75871805b8fa8ffcd1a94778be4c?.jpeg"
            }
            
            1 Reply Last reply
            0

            • Login

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