<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I have used the code example to hook to widgets I created in Designer<br>
<br>
QLineEdit *test = this->findChild<QLineEdit
*>("ExampleLineEdit");<br>
<br>
Rafael March wrote:
<blockquote cite="mid:899697.85651.qm@web110111.mail.gq1.yahoo.com"
type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td
style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;"
valign="top">Hey all,<br>
<br>
I'm creating a filter with a custom Object Panel, but I still have some
doubts.<br>
<br>
I am able to create a Panel using Qt Designer, and then load it into my
filter extending the class pqLoadedFormObjectPanel. Everything works
fine. Qt Designer allows me to create some Slots, but in a limited
manner. I couldn't find, for instance, how to capture with a Label the
name of the item of a tree. This would require some C++ code, I
suppose, to get the QString name from the item. So, I thought in just
using the Qt Designer to create the Panel, and using C++ code through
my panel class, which extends pqLoadedFormObjectPanel, to create Slots
and handle the events associated with the widgets. Is it possible to
get the widgets which I created with Qt Designer with my Panel class ?
If so, how ? I just can't figure out how to do this.<br>
<br>
I don't know also the real difference between pqNamedObjectPanel e
pqLoadedFormObjectPanel. I saw the Threshold filter, and it seems that
it loads a QT Designer created Panel, but extending pqNamedObjectPanel.
I saw in the Paraview Wiki that if you want to use QT Designer, you
must extend PqLoadedFormObjectPanel...<br>
<br>
Well...any tips are appreciated !<br>
<br>
Thanks all !<br>
Rafael March<br>
</td>
</tr>
</tbody>
</table>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
ParaView mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ParaView@paraview.org">ParaView@paraview.org</a>
<a class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</body>
</html>