Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
5.14.2
-
None
Description
When you create a QRemoteObjectHost with an IP adress that does not belong to the computer you are running the application, you get an internal QSocketError. Now when you use hostUrl() it crashes.
auto pHost = new QRemoteObjectHost("tcp://99.99.99.99:12345");
pHost->hostUrl();
Example:
#include <QtWidgets/QApplication> #include <QtRemoteObjects/QRemoteObjectHost> int main(int argc, char* argv[]) { QApplication a(argc, argv); auto pHost = new QRemoteObjectHost("tcp://99.99.99.99:12345"); // use an ip address that does not belong to your adapters pHost->hostUrl(); return a.exec(); }