Either that or we make a Q_PROPERTY named "values":<div>Q_PROPERTY( QVector<double> values READ values WRITE setValues)</div><div><br></div><div>There is already: ctkMatrixWidget::setVector(QVector<double>), maybe it could be renamed into setValues and values() should then also be written. </div>
<div><br><div>Julien.<br><br><div class="gmail_quote">On Tue, Aug 16, 2011 at 12:37 PM, Daniel Haehn <span dir="ltr"><<a href="mailto:haehn@bwh.harvard.edu">haehn@bwh.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi guys,<br>
<br>
it seems that it is not possible to set a value of a ctkMatrixWidget<br>
from Python?<br>
<br>
Shall we just enable Q_INVOKABLE on the ctkMatrixWidget::setValue method?<br>
<br>
Thanks,<br>
Daniel<br>
_______________________________________________<br>
Ctk-developers mailing list<br>
<a href="mailto:Ctk-developers@commontk.org">Ctk-developers@commontk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
</blockquote></div><br></div></div>