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.
[SOLVED] Conversion between Qt and Ua built-in types ...
Moderator: uasdkcpp
-
- Hero Member
- Posts: 26
- Joined: 04 Oct 2012, 17:56
- Support Team
- Hero Member
- Posts: 3072
- Joined: 18 Mar 2011, 15:09
Re:Conversion between Qt and Ua built-in types ...
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
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
Unified Automation Support Team
-
- Hero Member
- Posts: 26
- Joined: 04 Oct 2012, 17:56
Re:Conversion between Qt and Ua built-in types ...
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.
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.