You must know how to use QSslSocket::supportsSsl in your app to check if your Qt lib supports ssl. How does QSslSocket::supportsSsl decide if it supports ssl or not? The function searches some directories in order for the two openssl dlls: libeay32.dll and ssleay32.dll. If both files are found, it returns true meaning ssl is supported. Otherwise, it returns false meaning ssl is not supported. The search directories are (in order): the directory where your app resides; the system directory(C:\windows\system32); the directories in the PATH environment variable.
If you run your app in Qt Creator, you can find the PATH environment variable in the Projects/Run Settings. If you debug your app in Qt Creator, the debugger such as gdb will add additional directories such as (../opt/bin/ relative to where gdb.exe is) in the PATH environment variable. If you run your app outside Qt Creator, you can check the PATH environment variable in the system settings.