Qt custom widgets

Find and share HowTos to various installations / configurations!
20 posts • Page 1 of 2
amitgolhani
Posts:41
Joined: Thu Apr 10, 2014 10:32 am

Qt custom widgets

Post by amitgolhani »

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

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Qt custom widgets

Post by Gertjan van Schijndel »

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.

amitgolhani
Posts:41
Joined: Thu Apr 10, 2014 10:32 am

Re: Qt custom widgets

Post by amitgolhani »

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

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Qt custom widgets

Post by mkoller »

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).

amitgolhani
Posts:41
Joined: Thu Apr 10, 2014 10:32 am

Re: Qt custom widgets

Post by amitgolhani »

Hello Martin,

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

Post by mkoller »

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

amitgolhani
Posts:41
Joined: Thu Apr 10, 2014 10:32 am

Re: Qt custom widgets

Post by amitgolhani »

Hello Martin,

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

Post by amitgolhani »

Hello Martin,

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

Post by mkoller »

yes, you can.
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

Post by amitgolhani »

Thanks Martin. Whether BarChart3D EWO is based on Open GL? Please let me support 3D technology in WinCC OA.

20 posts • Page 1 of 2