Regarding how to get the information of Panel in EWO.
- Pradeep Kumar
- Posts:39
- Joined: Fri Dec 09, 2016 2:54 pm
Regarding how to get the information of Panel in EWO.
We require the panel information in EWO, For Ex: Panel Name, Panel ID, Project Name, EWO ID, EWO Type, , how do we get these information , which will help us for understanding the panel.
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Regarding how to get the information of Panel in EWO.
If you mean how to know this information inside the EWO C++ code the the answer is: you must pass this information via script to the EWO.
The EWO knows nothing about the UI. It's just a Qt widget
The EWO knows nothing about the UI. It's just a Qt widget
- Pradeep Kumar
- Posts:39
- Joined: Fri Dec 09, 2016 2:54 pm
Re: Regarding how to get the information of Panel in EWO.
Can u please elaborate ,
Q_PROPERTY(bool inGedi READ isInGedi WRITE setInGedi DESIGNABLE false SCRIPTABLE false)
bool isInGedi() const { return inGedi; }
should i be like this exposing the property and then get the value?.
Is this the similar way. and as i understood your answer, we need to do through script editor?, is it so?.
Q_PROPERTY(bool inGedi READ isInGedi WRITE setInGedi DESIGNABLE false SCRIPTABLE false)
bool isInGedi() const { return inGedi; }
should i be like this exposing the property and then get the value?.
Is this the similar way. and as i understood your answer, we need to do through script editor?, is it so?.
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Regarding how to get the information of Panel in EWO.
These are two pair of shoes.
The inGedi property is set by the UI manager automatically. You just need to provide the property. Gedi checks if this property exists in the ewo and sets it to true,
so inside your EWO code you know if the EWO is currently inside Gedi or not.
Your other question about panel name, etc. needs to be passed via CTRL script to the ewo, either via a Q_PROPERTY or via a method (see BaseExternWidget::methodList())
The inGedi property is set by the UI manager automatically. You just need to provide the property. Gedi checks if this property exists in the ewo and sets it to true,
so inside your EWO code you know if the EWO is currently inside Gedi or not.
Your other question about panel name, etc. needs to be passed via CTRL script to the ewo, either via a Q_PROPERTY or via a method (see BaseExternWidget::methodList())