My problem is that with Qt 5.2.0, minGW 4.8, OpenSSL 1.0.1f, Win 7 or 8.1 in this test program's sockets never neither get encrypted nor write some error (if I choose QSsl::TlsV1_1 or QSsl::TlsV1_2). Today I updated to Qt 5.2.1 and sockets began to become encrypted. So I guess 5.2.0 has some related bug.