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?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 4 Posters 1.0k 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.
  • A Offline
    A Offline
    ali-aydin
    wrote on 10 Nov 2022, 20:42 last edited by ali-aydin 11 Oct 2022, 20:44
    #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
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 11 Nov 2022, 04:24 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
      • M Offline
        M Offline
        Markkyboy
        wrote on 11 Nov 2022, 12:11 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zzzzxx
          wrote on 24 Apr 2024, 10:42 last edited by
          #4

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

          M 1 Reply Last reply 24 Apr 2024, 11:30
          0
          • Z zzzzxx
            24 Apr 2024, 10:42

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

            M Offline
            M Offline
            Markkyboy
            wrote on 24 Apr 2024, 11:30 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