Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Is it possible to have "Best of both worlds" within Qt versions regarding modules?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to have "Best of both worlds" within Qt versions regarding modules?

Scheduled Pinned Locked Moved Solved Qt 6
25 Posts 5 Posters 5.1k Views 2 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.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #2

    QtSerialPort will be released with Qt 6.2 scheduled for September, you can try the beta version now if you want

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    Y 1 Reply Last reply
    1
    • VRoninV VRonin

      QtSerialPort will be released with Qt 6.2 scheduled for September, you can try the beta version now if you want

      Y Offline
      Y Offline
      Yina
      wrote on last edited by Yina
      #3

      @VRonin

      Thank you for your reply.

      I have tried this but sadly the issue is here that we cannot use QtSerialPort in 6.2 in the beta version, unless I haven't found the right solution to have the desired result

      Are you familiair with this? :-)

      Kind regards,
      Yina

      KroMignonK 1 Reply Last reply
      0
      • Y Yina

        @VRonin

        Thank you for your reply.

        I have tried this but sadly the issue is here that we cannot use QtSerialPort in 6.2 in the beta version, unless I haven't found the right solution to have the desired result

        Are you familiair with this? :-)

        Kind regards,
        Yina

        KroMignonK Offline
        KroMignonK Offline
        KroMignon
        wrote on last edited by
        #4

        @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

        I have tried this but sadly the issue is here that we cannot use QtSerialPort in 6.2 in the beta version, unless I haven't found the right solution to have the desired result

        Which issue do you talking about?
        If Qt6.2 is not possible for you, you have to go with Qt 5.xx series, in which QSerialPort is available.
        Mixing Qt version is not possible.

        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

        Y 1 Reply Last reply
        0
        • KroMignonK KroMignon

          @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

          I have tried this but sadly the issue is here that we cannot use QtSerialPort in 6.2 in the beta version, unless I haven't found the right solution to have the desired result

          Which issue do you talking about?
          If Qt6.2 is not possible for you, you have to go with Qt 5.xx series, in which QSerialPort is available.
          Mixing Qt version is not possible.

          Y Offline
          Y Offline
          Yina
          wrote on last edited by
          #5

          @KroMignon

          Thank you for your response

          The issue im reffering to is this:

          I am trying to deploy my qt application but I encountered these errors: qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.
          I had these errors before in qt 6.1.2 but I fixed them by including the libssl-1_1-x64.dll and the libcrypto-1_1-x64.dll and then my program ran fine.
          Now I tried doing that with qt 6.2.0 but that didn't seem to work I still has these errors.

          Are you familiair with this issue? :-)

          Kind regardss,
          Yina

          artwawA KroMignonK 2 Replies Last reply
          0
          • Y Yina

            @KroMignon

            Thank you for your response

            The issue im reffering to is this:

            I am trying to deploy my qt application but I encountered these errors: qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.
            I had these errors before in qt 6.1.2 but I fixed them by including the libssl-1_1-x64.dll and the libcrypto-1_1-x64.dll and then my program ran fine.
            Now I tried doing that with qt 6.2.0 but that didn't seem to work I still has these errors.

            Are you familiair with this issue? :-)

            Kind regardss,
            Yina

            artwawA Offline
            artwawA Offline
            artwaw
            wrote on last edited by
            #6

            @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

            I fixed them by including the libssl-1_1-x64.dll and the libcrypto-1_1-x64.dll and then my program ran fine.
            Now I tried doing that with qt 6.2.0 but that didn't seem to work I still has these errors.

            Nothing to do with serial port. You're missing OpenSSL libraries. Those can be compiled yourself or added via Qt Maintenance Tool.

            For more information please re-read.

            Kind Regards,
            Artur

            Y 1 Reply Last reply
            3
            • artwawA artwaw

              @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

              I fixed them by including the libssl-1_1-x64.dll and the libcrypto-1_1-x64.dll and then my program ran fine.
              Now I tried doing that with qt 6.2.0 but that didn't seem to work I still has these errors.

              Nothing to do with serial port. You're missing OpenSSL libraries. Those can be compiled yourself or added via Qt Maintenance Tool.

              Y Offline
              Y Offline
              Yina
              wrote on last edited by
              #7

              @artwaw said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

              Maintenance

              Dear artwaw

              The libraries are installed but they are not shipped with the executeable.
              As stated on this page: https://doc.qt.io/qt-6/ssl.html windeployqt does not automatically deploy OpenSll with applications due to international laws.
              (if I copy paste libcrypto-1_1-x64.dll and libssl-1_1-x64.dll in the executabele folder from a previous version of qt it works but in a executable from 6.2 it does not work). I still get these errors : qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.

              kind regards
              Yina

              artwawA 1 Reply Last reply
              0
              • Y Yina

                @artwaw said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                Maintenance

                Dear artwaw

                The libraries are installed but they are not shipped with the executeable.
                As stated on this page: https://doc.qt.io/qt-6/ssl.html windeployqt does not automatically deploy OpenSll with applications due to international laws.
                (if I copy paste libcrypto-1_1-x64.dll and libssl-1_1-x64.dll in the executabele folder from a previous version of qt it works but in a executable from 6.2 it does not work). I still get these errors : qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.

                kind regards
                Yina

                artwawA Offline
                artwawA Offline
                artwaw
                wrote on last edited by
                #8

                @Yina Your SSL libraries are in wrong version or not compiled properly for the kit you are using in 6.2. I'd recommend building them from source using the compiler you use for Qt. It is very straightforward.

                For more information please re-read.

                Kind Regards,
                Artur

                1 Reply Last reply
                2
                • Y Yina

                  @KroMignon

                  Thank you for your response

                  The issue im reffering to is this:

                  I am trying to deploy my qt application but I encountered these errors: qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.
                  I had these errors before in qt 6.1.2 but I fixed them by including the libssl-1_1-x64.dll and the libcrypto-1_1-x64.dll and then my program ran fine.
                  Now I tried doing that with qt 6.2.0 but that didn't seem to work I still has these errors.

                  Are you familiair with this issue? :-)

                  Kind regardss,
                  Yina

                  KroMignonK Offline
                  KroMignonK Offline
                  KroMignon
                  wrote on last edited by
                  #9

                  @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                  The issue im reffering to is this:
                  I am trying to deploy my qt application but I encountered these errors: qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.
                  I had these errors before in qt 6.1.2 but I fixed them by including the libssl-1_1-x64.dll and the libcrypto-1_1-x64.dll and then my program ran fine.
                  Now I tried doing that with qt 6.2.0 but that didn't seem to work I still has these errors.
                  Are you familiair with this issue? :-)
                  Kind regardss,
                  Yina

                  Out of curiosity, did you install OpenSSL libraries with Qt Maintenance Tool?
                  You can find it under Developer and Designer Tools
                  6a661609-e52e-41b6-8f47-44990e99a1e9-image.png

                  It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                  Y 1 Reply Last reply
                  0
                  • KroMignonK KroMignon

                    @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                    The issue im reffering to is this:
                    I am trying to deploy my qt application but I encountered these errors: qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.
                    I had these errors before in qt 6.1.2 but I fixed them by including the libssl-1_1-x64.dll and the libcrypto-1_1-x64.dll and then my program ran fine.
                    Now I tried doing that with qt 6.2.0 but that didn't seem to work I still has these errors.
                    Are you familiair with this issue? :-)
                    Kind regardss,
                    Yina

                    Out of curiosity, did you install OpenSSL libraries with Qt Maintenance Tool?
                    You can find it under Developer and Designer Tools
                    6a661609-e52e-41b6-8f47-44990e99a1e9-image.png

                    Y Offline
                    Y Offline
                    Yina
                    wrote on last edited by
                    #10

                    @KroMignon
                    hello

                    Yes I did, now I'm trying to compile the ssl libraries like artwaw said.
                    Currently I am cloning this : https://wiki.qt.io/Building_Qt_6_from_Git
                    So I can do this configure command to compile my dll's in MSVC2019
                    02214366-5392-4409-ab96-550d3e0d39a4-image.png
                    link: https://www.qtcentre.org/threads/30523-How-to-Building-Qt-with-OpenSSL-support-using-the-Windows-SDK

                    But I am fairly new to this so if I am doing it the wrong way could you please help me to get into the right direction.

                    kind regads,
                    Yina

                    artwawA KroMignonK 2 Replies Last reply
                    0
                    • Y Yina

                      @KroMignon
                      hello

                      Yes I did, now I'm trying to compile the ssl libraries like artwaw said.
                      Currently I am cloning this : https://wiki.qt.io/Building_Qt_6_from_Git
                      So I can do this configure command to compile my dll's in MSVC2019
                      02214366-5392-4409-ab96-550d3e0d39a4-image.png
                      link: https://www.qtcentre.org/threads/30523-How-to-Building-Qt-with-OpenSSL-support-using-the-Windows-SDK

                      But I am fairly new to this so if I am doing it the wrong way could you please help me to get into the right direction.

                      kind regads,
                      Yina

                      artwawA Offline
                      artwawA Offline
                      artwaw
                      wrote on last edited by
                      #11

                      @Yina Either I miss something or you are going to far.
                      If you installed Qt via the Maintenance Tool SSL support is already on - the only thing missing are two libraries which can be downloaded via the said tool. All you need to do is copy them over - if this doesn't work just download the OpenSSL source from https://openssl.org/ and compile that. In effect you will have those two libraries compiled with the same compiler that you use for work with Qt.
                      or have you previously compiled Qt 6 from sources too?

                      For more information please re-read.

                      Kind Regards,
                      Artur

                      Y 1 Reply Last reply
                      0
                      • artwawA artwaw

                        @Yina Either I miss something or you are going to far.
                        If you installed Qt via the Maintenance Tool SSL support is already on - the only thing missing are two libraries which can be downloaded via the said tool. All you need to do is copy them over - if this doesn't work just download the OpenSSL source from https://openssl.org/ and compile that. In effect you will have those two libraries compiled with the same compiler that you use for work with Qt.
                        or have you previously compiled Qt 6 from sources too?

                        Y Offline
                        Y Offline
                        Yina
                        wrote on last edited by
                        #12

                        @artwaw
                        Hello,

                        you were talking about 2 libraries I am assuming you are talking about these? this is what I got when I downloaded the openSSL 1.1.1j toolkit (in the Maintenance tool)
                        5a49a626-6402-47fe-ba81-7e91e42d172a-image.png
                        d9411ebc-2126-4f86-8010-b3c0696c23de-image.png

                        "All you need to do is copy them over": in QTcreator it works but if I copy them over in my executable folder It does not work anymore and I get the qt.network.ssl: No functional TLS backend was found error when I run with the debugger.

                        kind regards
                        Yina

                        1 Reply Last reply
                        0
                        • Y Yina

                          @KroMignon
                          hello

                          Yes I did, now I'm trying to compile the ssl libraries like artwaw said.
                          Currently I am cloning this : https://wiki.qt.io/Building_Qt_6_from_Git
                          So I can do this configure command to compile my dll's in MSVC2019
                          02214366-5392-4409-ab96-550d3e0d39a4-image.png
                          link: https://www.qtcentre.org/threads/30523-How-to-Building-Qt-with-OpenSSL-support-using-the-Windows-SDK

                          But I am fairly new to this so if I am doing it the wrong way could you please help me to get into the right direction.

                          kind regads,
                          Yina

                          KroMignonK Offline
                          KroMignonK Offline
                          KroMignon
                          wrote on last edited by
                          #13

                          @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                          But I am fairly new to this so if I am doing it the wrong way could you please help me to get into the right direction.

                          As @artwaw wrote before, it depends on how you did install Qt 6.2:

                          • did you compile yourself from sources?
                          • did you install the beta version with Maintenance Tool?

                          If you compile it yourself, you will have to reconfigure/compile/install.
                          When using Qt Maintenance Tool you will have nothing to do, apart copy dll from <QT_INSTALL_DIR>/Tools/OpenSLL/Win_XXX/bin into <QT_INSTALL_DIR>/6.2/<qt_kit>/bin

                          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                          Y 1 Reply Last reply
                          0
                          • KroMignonK KroMignon

                            @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                            But I am fairly new to this so if I am doing it the wrong way could you please help me to get into the right direction.

                            As @artwaw wrote before, it depends on how you did install Qt 6.2:

                            • did you compile yourself from sources?
                            • did you install the beta version with Maintenance Tool?

                            If you compile it yourself, you will have to reconfigure/compile/install.
                            When using Qt Maintenance Tool you will have nothing to do, apart copy dll from <QT_INSTALL_DIR>/Tools/OpenSLL/Win_XXX/bin into <QT_INSTALL_DIR>/6.2/<qt_kit>/bin

                            Y Offline
                            Y Offline
                            Yina
                            wrote on last edited by
                            #14

                            @KroMignon
                            Hello

                            I installed via the Maintenance tool, so then I copied the libcrypto-1_1-x64 in my MSVC2019 bin directory:
                            2477c5ab-4842-40a5-9b4d-de6a98646630-image.png

                            After that I proceeded to make an executabele so I deployed my project and ran windeployqt.exe

                            PATH \debug> C:\Qt\6.2.0\msvc2019_64\bin\windeployqt.exe --qmldir C:\Users\yina\OneDrive\documtents\Qt\Project .

                            When I ran through my files in the executable folder I saw that the libcrypto-1_1-x64.dll and libssl-1_1-x64.dll weren't in that said folder. I believe that is because of international laws.
                            So I manually copied the 2 files from the bin folder
                            6e53197b-aa8b-49cd-b070-74d6e5422ebe-image.png

                            then I tested and the program is still not able to do an HTTPS request.
                            Then I ran with the debugger tool with an external executable and I saw that I still get the error like I said above.
                            qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.

                            Kind regads
                            Yina

                            KroMignonK 1 Reply Last reply
                            0
                            • Y Yina

                              @KroMignon
                              Hello

                              I installed via the Maintenance tool, so then I copied the libcrypto-1_1-x64 in my MSVC2019 bin directory:
                              2477c5ab-4842-40a5-9b4d-de6a98646630-image.png

                              After that I proceeded to make an executabele so I deployed my project and ran windeployqt.exe

                              PATH \debug> C:\Qt\6.2.0\msvc2019_64\bin\windeployqt.exe --qmldir C:\Users\yina\OneDrive\documtents\Qt\Project .

                              When I ran through my files in the executable folder I saw that the libcrypto-1_1-x64.dll and libssl-1_1-x64.dll weren't in that said folder. I believe that is because of international laws.
                              So I manually copied the 2 files from the bin folder
                              6e53197b-aa8b-49cd-b070-74d6e5422ebe-image.png

                              then I tested and the program is still not able to do an HTTPS request.
                              Then I ran with the debugger tool with an external executable and I saw that I still get the error like I said above.
                              qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.

                              Kind regads
                              Yina

                              KroMignonK Offline
                              KroMignonK Offline
                              KroMignon
                              wrote on last edited by
                              #15

                              @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                              qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.

                              Just for testing purpose, could you add "C:\Qt\Tools\OpenSSL\Win_x64\bin" the PATH and the try to start your application?
                              Do this work?

                              It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                              Y 1 Reply Last reply
                              0
                              • KroMignonK KroMignon

                                @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                                qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.

                                Just for testing purpose, could you add "C:\Qt\Tools\OpenSSL\Win_x64\bin" the PATH and the try to start your application?
                                Do this work?

                                Y Offline
                                Y Offline
                                Yina
                                wrote on last edited by
                                #16

                                @KroMignon said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                                hello

                                I did that but the thing is it always works in the qt creator but if I make an executable is won't work anymore, so I made an executable via windeployqt.exe with "C:\Qt\Tools\OpenSSL\Win_x64\bin" added through the path and it still does not work.And I still get the same errors.The application starts but I can't do an HTTPS request.

                                kind regards
                                Yina

                                KroMignonK 1 Reply Last reply
                                0
                                • Y Yina

                                  @KroMignon said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                                  hello

                                  I did that but the thing is it always works in the qt creator but if I make an executable is won't work anymore, so I made an executable via windeployqt.exe with "C:\Qt\Tools\OpenSSL\Win_x64\bin" added through the path and it still does not work.And I still get the same errors.The application starts but I can't do an HTTPS request.

                                  kind regards
                                  Yina

                                  KroMignonK Offline
                                  KroMignonK Offline
                                  KroMignon
                                  wrote on last edited by
                                  #17

                                  @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                                  hello
                                  I did that but the thing is it always works in the qt creator but if I make an executable is won't work anymore, so I made an executable via windeployqt.exe with "C:\Qt\Tools\OpenSSL\Win_x64\bin" added through the path and it still does not work.And I still get the same errors.The application starts but I can't do an HTTPS request.
                                  kind regards
                                  Yina

                                  Could you add some debug information to help to understand what's happening:

                                  qDebug() << "SSL support:" << QSslSocket::supportSsl();
                                  qDebug() << "SSL version required:" << QSslSocket::sslLibraryBuildVersionString();
                                  qDebug() << "SSL version found:" << QSslSocket::sslLibraryVersionString();
                                  

                                  It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                                  1 Reply Last reply
                                  1
                                  • Y Offline
                                    Y Offline
                                    Yina
                                    wrote on last edited by
                                    #18

                                    @KroMignon said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                                    Hello

                                    //executable the thing I want that works
                                    SSL support: false
                                    SSL version required: ""
                                    SSL version found: ""

                                    //qtCreator so not the executable
                                    SSL support: true
                                    SSL version required: "OpenSSL 1.1.1k 25 Mar 2021"
                                    SSL version found: "OpenSSL 1.1.1k 25 Mar 2021"

                                    Kind regards
                                    Yina

                                    KroMignonK 1 Reply Last reply
                                    0
                                    • Y Yina

                                      @KroMignon said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                                      Hello

                                      //executable the thing I want that works
                                      SSL support: false
                                      SSL version required: ""
                                      SSL version found: ""

                                      //qtCreator so not the executable
                                      SSL support: true
                                      SSL version required: "OpenSSL 1.1.1k 25 Mar 2021"
                                      SSL version found: "OpenSSL 1.1.1k 25 Mar 2021"

                                      Kind regards
                                      Yina

                                      KroMignonK Offline
                                      KroMignonK Offline
                                      KroMignon
                                      wrote on last edited by KroMignon
                                      #19

                                      @Yina I think I've got it!

                                      you also have to copy capi.dll and padlock.dll from the lib\engines-1_1 sub-directory!

                                      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                                      Y 1 Reply Last reply
                                      0
                                      • KroMignonK KroMignon

                                        @Yina I think I've got it!

                                        you also have to copy capi.dll and padlock.dll from the lib\engines-1_1 sub-directory!

                                        Y Offline
                                        Y Offline
                                        Yina
                                        wrote on last edited by
                                        #20

                                        @KroMignon

                                        sadly that didn't seem to work, it still is the exact same result as before.
                                        I tried adding in the dll's just in the folder of the executable and I also tried adding the enitre folder + the .lib files in the executable folder so these files:
                                        819eb0a1-9a02-4d3f-bbf4-3ebbb01a7f11-image.png

                                        this is the result when everything is added:
                                        608c09d4-bb9e-4629-9899-8e39a0a3d33a-image.png

                                        but the result didn't change.

                                        kind regards
                                        Yina

                                        KroMignonK 1 Reply Last reply
                                        0
                                        • Y Yina

                                          @KroMignon

                                          sadly that didn't seem to work, it still is the exact same result as before.
                                          I tried adding in the dll's just in the folder of the executable and I also tried adding the enitre folder + the .lib files in the executable folder so these files:
                                          819eb0a1-9a02-4d3f-bbf4-3ebbb01a7f11-image.png

                                          this is the result when everything is added:
                                          608c09d4-bb9e-4629-9899-8e39a0a3d33a-image.png

                                          but the result didn't change.

                                          kind regards
                                          Yina

                                          KroMignonK Offline
                                          KroMignonK Offline
                                          KroMignon
                                          wrote on last edited by
                                          #21

                                          @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                                          sadly that didn't seem to work, it still is the exact same result as before.
                                          I tried adding in the dll's just in the folder of the executable and I also tried adding the enitre folder + the .lib files in the executable folder so these files:

                                          lib files are not relevant, they are required for build dependencies.
                                          Hmm, very strange, cannot figure out what's going wrong for you...
                                          Sorry, maybe someone else got an idea?

                                          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                                          Y 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