@sergitab94 Sorry for this reply I know this is an old post, but I followed your steps one by one but still my build fails.
Anyway opennssl static build with Qt really frustrated me...
C:\Qt\Static5113OpenSSL\src\qt-everywhere-src-5.11.3\qtbase\bin\qmake.exe -install qinstall C:\Qt\Static5113OpenSSL\src\qt-everywhere-src-5.11.3\qtbase\mkspecs\winrt-x86-msvc2015 C:\Qt\Static5113OpenSSL\StaticOpenSSL64\mkspecs\winrt-x86-msvc2015
C:\Qt\Static5113OpenSSL\src\qt-everywhere-src-5.11.3\qtbase\bin\qmake.exe -install qinstall C:\Qt\Static5113OpenSSL\src\qt-everywhere-src-5.11.3\qtbase\mkspecs\winrt-x86-msvc2017 C:\Qt\Static5113OpenSSL\StaticOpenSSL64\mkspecs\winrt-x86-msvc2017
mingw32-make[1]: Target 'install' not remade because of errors.
mingw32-make[1]: Leaving directory 'C:/Qt/Static5113OpenSSL/src/qt-everywhere-src-5.11.3/qtbase'
mingw32-make: *** [Makefile:92: module-qtbase-install_subtargets] Error 2
mingw32-make: Target 'install' not remade because of errors.
There are several ways how to communicate between C++ and QML. The most important part is to set up your class with signals and slots to be used in QML.
A simple guide with an example project can be found here:
https://v-play.net/cross-platform-development/how-to-expose-a-qt-cpp-class-with-signals-and-slots-to-qml#how-to-communicate-between-cpp-and-qml
@Chris-Kawa thank you for your response! I know that there is no 64bit VS, and you are right about the 64 bit builds, I just don't know how to do it :) I managed to get rid of the problem written above by removing qtmain.lib from the lib listing, and VS builds the app succesfully. I just downloaded the 64 bit Qt version and will try it, hope it will be fine with MD and MDd settings.
// Disambiguate overloaded member function below with static cast
connect(socket, static_cast<void (QTcpSocket::*) (QAbstractSocket::SocketError)>(&QTcpSocket::error), this, &Network::socketErrorSlot);
I think that deserves to be in bugtracker, isn't it? Not good idea to implement new notation and use the same names for method and signal.