Hi,

Are you sure that the backend is loaded properly? Check 
QOpcUaProvider::availableBackends() and/or whether the client creation causes 
any issues.
Furthermore, I assume you have been using the documentation from Open62541 
itself? The default build generates a shared library, which needs to be in your 
PATH to be found on runtime.

As a final comment, your question is rather on using Qt / QtOpcUa, while this 
list is intended for developing on Qt itself. Hence, let’s move any followup 
discussion to interest@qt-project.org<mailto:interest@qt-project.org> where 
user problems are tackled.

BR,
Maurice


From: Development <development-bounces+maurice.kalinowski=qt...@qt-project.org> 
On Behalf Of Berna Sanchez
Sent: Sunday, September 2, 2018 7:03 PM
To: developm...@qt-project.org
Subject: [Development] qt open62541 client connection signals doesn't receive 
from backend class

Hello,
I'm on a stuck with a problem and some help will be appreciated it.
I've installed open62541 following this tutorial (Building On Windows – 
Mingw32) and seems like everything are ok, but when I try to connect my own 
client with a demo opcua server the QOpcUaClient::ClientState(Connecting) is 
always connecting state (no matter if server is running or not).

Debugging I can see:

-qopen62541backend.cpp:
Open62541AsyncBackend::connectToEndpoint(const QUrl &url) is emitting signals 
correctly (connected when server is running or disconnected when not) so far I 
think it's ok.

On other hand, qopcuaclientprivate.cpp:
void pcUaClientPrivate::setStateAndError(QOpcUaClient::ClientState state, 
QOpcUaClient::ClientError error) seems like should receive the signals from 
backend class but it doesn't work, so client state still on connecting.

I also tried with other compiler (“Qt 5.11.1 64-bit for Desktop (MSVC 2017)”) 
and still happen the same.

I'm looking forward for your feedback. Thanks in advance.
Regards.
Berna.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to