Displaying extended attributes for EWO

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
ottemot
Posts:13
Joined: Wed Dec 02, 2015 2:30 pm

Displaying extended attributes for EWO

Post by ottemot »

Hi,

I would like to be able to set certain attributes for my EWO in the extended tab.
I haven't been able to find any documentation about how this is done in e.g. the DialGauge.ewo widget.

Could anyone please enlighten me? Right now I set these attributes through the control script, e.g. this.setSomeAttribute(value) during initialization.

The attached image shows the DialGauge's extended tab with numerous attributes to clarify what I'm after.

Image
Attachments
dialgauge.PNG

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

Re: Displaying extended attributes for EWO

Post by mkoller »

All attributes shown in the extended tab are queried dynamically from the QMetaObject of the EWO.
Simply use Q_PROPERTY and you get what you want.

ottemot
Posts:13
Joined: Wed Dec 02, 2015 2:30 pm

Re: Displaying extended attributes for EWO

Post by ottemot »

Great, just what I was looking for, thank you :)

3 posts • Page 1 of 1