<html><head></head><body><div>Thanks: there was something wrong indeed with the property link: now everything is working fine.</div><div>And again you saved me overnight a lot of time for detours - just by pointing your finger in the right direction!</div><div><br></div><div>Regards, Cornelis</div><div><br></div><div>Am Montag, den 26.03.2018, 21:16 -0400 schrieb Utkarsh Ayachit:</div><blockquote type="cite"><div dir="ltr">I suspect the problem is with the hooking up of the property and the widget.<div><br></div><div>1. ensure that pqPropertyLinks is setup correctly so that servermanager-property and teh Qt property are linked correct</div><div>2. ensure correct signal is fired with the widget is changed by the user</div><div>3. add break points in <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">getIds to confirm that it gets called when user changes UI and its returning correct values.</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Utkarsh</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 26, 2018 at 5:41 PM, Cornelis Bockemühl <span dir="ltr"><<a href="mailto:cornelis.bockemuehl@gmail.com" target="_blank">cornelis.bockemuehl@gmail.com</a>></span> wrote:<br><blockquote type="cite"><div><div>Dear all,</div><div><br></div><div>For some PV filter (named "WriteValue") I am writing a custom widget (class pqPropertyGroupWidget). This includes 4 properties: a string, two "double" values and a list of int values. The list of int values I am "attaching" to the widget with this property definition:</div><div><br></div><div>Q_PROPERTY(QList Ids READ getIds WRITE setIds NOTIFY idsChanged)</div><div><br></div><div>and then in the code I have getIds, setIds and idsChanged defined and declared properly. Everything works fine and nice so far.</div><div><br></div><div>Only what I do not see is anything in the "state" file: there my filter is specified as follows:</div><div><br></div><div>    <Proxy group="filters" type="WriteValue" id="4604" servers="1"></div><div>      <Property name="Ids" id="4604.Ids"/></div><div>      <Property name="Input" id="4604.Input" number_of_elements="1"></div><div>        <Proxy value="4344" output_port="0"/></div><div>        <Domain name="groups" id="4604.Input.groups"/></div><div>        <Domain name="input_type" id="4604.Input.input_type"/></div><div>      </Property></div><div>      <Property name="ReplacementValue" id="4604.ReplacementValue" number_of_elements="1"></div><div>        <Element index="0" value="2"/></div><div>        <Domain name="range" id="4604.ReplacementValue.<wbr>range"/></div><div>      </Property></div><div>      <Property name="TargetArrayName" id="4604.TargetArrayName" number_of_elements="1"></div><div>        <Element index="0" value="NewAtt"/></div><div>      </Property></div><div>      <Property name="Value" id="4604.Value" number_of_elements="1"></div><div>        <Element index="0" value="12"/></div><div>        <Domain name="range" id="4604.Value.range"/></div><div>      </Property></div><div>    </Proxy></div><div><br></div><div>So the "TargetArrayName", the "Value" and the "ReplacementValue" are all fine with their proper values. Only the "Ids" looks like it contains nothing - which is not the case!</div><div><br></div><div>The specification in the server manager XML looks as follows:</div><div><br></div><div>      <IntVectorProperty command="AddId"</div><div>                         <wbr>clean_command="ClearIds"</div><div>                         <wbr>label="Ids"</div><div>                         name=<wbr>"Ids"</div><div>                         <wbr>number_of_elements_per_<wbr>command="1"</div><div>                         <wbr>repeat_command="1"></div><div>        <Documentation></div><div>          IDs for which the value should be set</div><div>        </Documentation></div><div>      </IntVectorProperty></div><div><br></div><div>Is there anything still obviously missing for proper handling of that "Ids" property also in the state file - including the list of values? Or is this simply not a built-in feature, so I need to "dig" even deeper - somehow?</div><div><br></div><div>Many thanks for any helpful hint!</div><div><br></div><div>Regards,</div><div>Cornelis</div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><br>
<br></blockquote></div><br></div>
</blockquote></body></html>