[SOLVED] Conversion between Qt and Ua built-in types ...

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
falko.wiese
Hero Member
Hero Member
Posts: 26
Joined: 04 Oct 2012, 17:56

[SOLVED] Conversion between Qt and Ua built-in types ...

Post by falko.wiese »

Hi guys,
have a question regarding the above mentioned conversion. Came to it, due to the found static methods UaVariant::UaTypeToVartype(..) and UaVariant::VartypeToUaType. Is there a similar way to do so for the Qt type QVariant?

Thanks in advance,
Falko.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re:Conversion between Qt and Ua built-in types ...

Post by Support Team »

Hello Falko,
the QVariant can't represent all datatypes the UaVariant can have. For example there is no datatype in the QVariant to represent a LocalizedText or QualifiedName.
What's your use case? Maybe we can give you more specific hints.

Best Regards,
Unified Automation Support Team
Best regards
Unified Automation Support Team

falko.wiese
Hero Member
Hero Member
Posts: 26
Joined: 04 Oct 2012, 17:56

Re:Conversion between Qt and Ua built-in types ...

Post by falko.wiese »

Hi,
excuse me, I was not precise enough. Solved my requirements. My use case was, to create a dynamic OPC UA server interface, based on a CPP/Qt implementation. For that, I shrinked the number of useable types. I can deal with it, and it works just fine. Right now, I would say, all is fine.

Thanks for your help,
Falko.

Post Reply