Hello,
I wanted to know whether custom widgets created using Qt community edition can be integrated in WinCC OA using API (EWO)? Also I would like to know whether widgets available in QWT can be integrated with WinCC OA?
Best Regards,
Amit Golhani
Qt custom widgets
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Qt custom widgets
Technically it is possible to use the community edition to create WinCC OA EWOs. Legally there could be some limitations.
To use available Qt widgets you have to implement the EWO interface.
To use available Qt widgets you have to implement the EWO interface.
- amitgolhani
- Posts:41
- Joined: Thu Apr 10, 2014 10:32 am
Re: Qt custom widgets
Hello Gertjan,
Thanks! I wanted to do PoC first before considering commercial edition, so wanted to check whether any community edition widget will work on WinCC OA or not. Can you share some examples of EWO based on custom widgets?
Best Regards,
Amit Golhani
Thanks! I wanted to do PoC first before considering commercial edition, so wanted to check whether any community edition widget will work on WinCC OA or not. Can you share some examples of EWO based on custom widgets?
Best Regards,
Amit Golhani
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Qt custom widgets
If you have the source code from any QWidget, you can use it as an EWO.
You can also use the community edition (they are identical in sourcecode with the commercial one, except that the commercial one has additional add-ons, which you do not need for an EWO).
You just need to be aware of the fact that on Linux we configure Qt to use a namespace and different library names, so that it does not conflict with the existing Qt libs from the distribution (we call configure with the options: -qtnamespace WinCC_OA -qtlibinfix WinCC_OA).
You can also use the community edition (they are identical in sourcecode with the commercial one, except that the commercial one has additional add-ons, which you do not need for an EWO).
You just need to be aware of the fact that on Linux we configure Qt to use a namespace and different library names, so that it does not conflict with the existing Qt libs from the distribution (we call configure with the options: -qtnamespace WinCC_OA -qtlibinfix WinCC_OA).
- amitgolhani
- Posts:41
- Joined: Thu Apr 10, 2014 10:32 am
Re: Qt custom widgets
Hello Martin,
Thanks for answering to my queries. Could you please share with me self learning material of EWO?
Best Regards,
Amit Golhani
Thanks for answering to my queries. Could you please share with me self learning material of EWO?
Best Regards,
Amit Golhani
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Qt custom widgets
You need knowledge in Qt and C++ as the basis.
Everything else is trivial: just look into the api directory of WinCC_OA and check the README.
You basically need to setup some env vars and run newEWO.sh to have a trivial EWO showing the basic idea.
EWO is really just a tiny wrapper around any QWidget
Everything else is trivial: just look into the api directory of WinCC_OA and check the README.
You basically need to setup some env vars and run newEWO.sh to have a trivial EWO showing the basic idea.
EWO is really just a tiny wrapper around any QWidget
- amitgolhani
- Posts:41
- Joined: Thu Apr 10, 2014 10:32 am
Re: Qt custom widgets
Hello Martin,
Thanks! I will try to run sample EWO after installing community edition as per WinCC OA requirement.
Best Regards,
Amit Golhani
Thanks! I will try to run sample EWO after installing community edition as per WinCC OA requirement.
Best Regards,
Amit Golhani
- amitgolhani
- Posts:41
- Joined: Thu Apr 10, 2014 10:32 am
Re: Qt custom widgets
Hello Martin,
Can I add 3D custom widget as an EWO with WinCC OA to meet 3D graphic requirement?
Best Regards,
Amit Golhani
Can I add 3D custom widget as an EWO with WinCC OA to meet 3D graphic requirement?
Best Regards,
Amit Golhani
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Qt custom widgets
yes, you can.
We did that in 3.13 with the BarChart3D EWO
We did that in 3.13 with the BarChart3D EWO
- amitgolhani
- Posts:41
- Joined: Thu Apr 10, 2014 10:32 am
Re: Qt custom widgets
Thanks Martin. Whether BarChart3D EWO is based on Open GL? Please let me support 3D technology in WinCC OA.