Re: Expose toolbutton to property editor of WinCC OA
Postby Pradeep Kumar »
k i have got what u said , i need to provide properties ,
i am providing using Q_PROPERTY( QStringList listValues READ getListValue WRITE setListValue DESIGNABLE true)
where listValues consist of many items, how the gedi will come to know it should add toolbutton or combobox?
Re: Expose toolbutton to property editor of WinCC OA
Postby mkoller »
QStringList is not supported as being edited in the gedi attribute editor.
You can only edit attributes of simple types like bool, int, float, string and also any enum.
Also you can use QColor, QPen, QBrush, QFont, QPoint
What you can do instead is to provide your own parametrization panel for the ewo.
See our help: qthelp://wincc_oa/doc/Native_GEDI/EWO.htm
"How can I get a special editor for the settings of my EWO ?"
Re: Expose toolbutton to property editor of WinCC OA
Postby Pradeep Kumar »
using QBrush and QColor , i am able to get tollbutton, using bool i am able to get combobox.
can anyone tell me after when i click on the toolbutton , i want the widget to pop up which we provided, by default the brush window is poping up, how to avoid and make in the setter function to pop up our widget.
This widget we need to show onclick on toolbutton in extended properties, not the previous image of fill type selection.
can u expain , how we can achieve this?
I want the toolbutton widget, to appear when we click on tolbutton in extended properties, not the fill type selection widget.
Re: Expose toolbutton to property editor of WinCC OA
Postby Gertjan van Schijndel »
I do not think it is possible to define an own widget for the selection of your EWO. However it is possible to create an object panel and place your EWO in it and use enums in the properties of this panel (these enums are shown in a dropdown list).
But you can use/make a special editor for your EWO as mentioned by Martin. In the online help this is under: Graphics editor (GEDI) -> Complex graphics objects -> EWO (External Widget Object) -> How can I get a special editor for the settings of my EWO?