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: TLS initialization failed
Forum Updated to NodeBB v4.3 + New Features

QML Image: TLS initialization failed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
24 Posts 4 Posters 4.2k Views 3 Watching
  • 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.
  • SGaistS SGaist

    That's the minimal cmake version required to build the project.

    As for OpenSSL, the installer might tell you this.
    The headers of the library.

    Or use QSslSocket::sslLibraryVersionString.

    Q Offline
    Q Offline
    qcoderpro
    wrote on last edited by
    #15

    @SGaist

    As for OpenSSL, the installer might tell you this.
    The headers of the library.

    Capture4.PNG

    Or use QSslSocket::sslLibraryVersionString.

    How to use it in my QML project?
    I used it this way but that doesn't work!

    Component.onCompleted: {
            console.log(QSslSocket::sslLibraryVersionString)
        }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #16

      @qcoderpro said in QML Image: TLS initialization failed:

      QSslSocket::sslLibraryVersionString

      Use it in you main.cpp.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Q 1 Reply Last reply
      1
      • SGaistS SGaist

        @qcoderpro said in QML Image: TLS initialization failed:

        QSslSocket::sslLibraryVersionString

        Use it in you main.cpp.

        Q Offline
        Q Offline
        qcoderpro
        wrote on last edited by qcoderpro
        #17

        @SGaist

        I included these two header files:

        #include <iostream>
        #include <QSslSocket>
        

        and this line in main.cpp:

        std::cout<< "The openSSL version is: " <<
                    QSslSocket::sslLibraryVersionString << '\n'
        

        In return I get this warning in the Issues window and nothing related to what I foresee in Application/Compile Output windows!

        warning: address of function 'QSslSocket::sslLibraryVersionString' will always evaluate to 'true'

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #18

          QSslSocket::sslLibraryVersionString is a static function that you have to call.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Q 1 Reply Last reply
          1
          • SGaistS SGaist

            QSslSocket::sslLibraryVersionString is a static function that you have to call.

            Q Offline
            Q Offline
            qcoderpro
            wrote on last edited by
            #19

            @SGaist

            Yes, I didn't notice the parentheses enough. Finally using: qInfo() << QSslSocket::sslLibraryVersionString(); I could see the result: "OpenSSL 1.1.1f 31 Mar 2020", which is very close to what the installer showed!

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #20

              Except it should be the j release. You should ensure that this is the one used by your application.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              Q 1 Reply Last reply
              0
              • SGaistS SGaist

                Except it should be the j release. You should ensure that this is the one used by your application.

                Q Offline
                Q Offline
                qcoderpro
                wrote on last edited by qcoderpro
                #21

                @SGaist

                You mean I have two files/packs installed as openSSL, one with f release and the other with j and that f release is what QtCreator is using!? So what is the problem with that f release the IDE is using and why can't it run the program by that properly?

                Or probably there's a conflict between the two releases and I need to uninstall one to run the app properly! :(
                But how?

                Q 1 Reply Last reply
                0
                • Q qcoderpro

                  @SGaist

                  You mean I have two files/packs installed as openSSL, one with f release and the other with j and that f release is what QtCreator is using!? So what is the problem with that f release the IDE is using and why can't it run the program by that properly?

                  Or probably there's a conflict between the two releases and I need to uninstall one to run the app properly! :(
                  But how?

                  Q Offline
                  Q Offline
                  qcoderpro
                  wrote on last edited by
                  #22

                  Now when I run the project, Issues, Compile Output and General Messages windows show nothing. Only Application Output shows this:
                  Starting ... build-QML_5-Desktop_Qt_5_15_2_MinGW_64_bit-Debug\QML_5.exe ... which shows nothing bad!

                  So why still nothing as output is shown? :(

                  tomyT 1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #23

                    Did you check that your application shows correctly an image from your disk ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • Q qcoderpro

                      Now when I run the project, Issues, Compile Output and General Messages windows show nothing. Only Application Output shows this:
                      Starting ... build-QML_5-Desktop_Qt_5_15_2_MinGW_64_bit-Debug\QML_5.exe ... which shows nothing bad!

                      So why still nothing as output is shown? :(

                      tomyT Offline
                      tomyT Offline
                      tomy
                      wrote on last edited by tomy
                      #24

                      @qcoderpro

                      Put your image element inside a window element. It's required to me.

                      1 Reply Last reply
                      1

                      • Login

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