Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Example Simpleselector not working

    Qt WebKit
    webkit simpleselector example ssl
    2
    2
    1176
    Loading More Posts
    • 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.
    • K
      Kussi last edited by

      Hi there,

      I'm new to Qt. I got the Qt Creator, Qt 5.5 and MinGW as compiler.

      When trying the example "simpleselector" i got the following problem.

      Using the example as is in debug mode, the application won't work and it shows:

      QNetworkReplyImpl::_q_startOperation was called more than once
      qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
      qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new
      qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
      qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
      qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
      

      I copied the DLLs libeay32.dll and ssleay32.dll from C:\Qt\Tools\QtCreator\bin into the debug-folder of the example. The application started, but windows told me after a few seconds it was not responding.

      I tried the same using the profile Release and it worked like charm.

      Then I tried a website, which doesn't use SSL in Debug-Mode and it worked also.

      Does anyone now, if there are special configurations necessary or if there is a bug in the example.

      Thanks for your help.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Don't copy these DLLs, unless it has changed over time, Qt Creator is build with MSVC and you have a MinGW Qt build. You should rather get the official OpenSSL package and install that one to use with 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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post