<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I have QTreeWidget derived class instance in my homemade reader
(custom panel), managed automatically by ParaView (using the xml
description), but the fields are alphabetically sort (1, 10, 100,
101, ..., 11, 12,...) and not numerically (1,2,3,...10,11,);<br>
<br>
So a created a new a function "callbackcreateTreeWidgetItem" to
create new treewidgetitems with the good "operator<" so my items
are sorted in the right order. but I do not know how put all the
bricks together to make this work . (I tried to do some reverse
engineering on paraview sources "pqSelectionInspectorPanel.h/cxx").<br>
<b><br>
</b>Ingredients: <b><br>
</b><b> </b> <b> </b><b><br>
</b><a href="140331173311760"><span style="background-color:
rgb(241, 241, 241);">P</span></a><span style="background-color:
rgb(241, 241, 241);">roductTreeWidget</span>* PointArrayStatus;//
(derived class from QTreeWidget) instance in my custom panel <b> <br>
</b><b><br>
</b>the callback function (with the right signature) to create new
items with the right "operator<":<br>
QTreeWidgetItem* callbackTreeWidgetItem(QTreeWidget* parent, const
QStringList& val);<b><br>
</b><b><br>
</b> I know that I have to use the pqSignalAdaptorTreeWidget but I
dont know how.<b><br>
<br>
</b>Any ideas, hints ???<b><br>
</b>Thanks,<b><br>
</b><br>
<br>
<pre class="moz-signature" cols="72">--
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
<a class="moz-txt-link-abbreviated" href="mailto:Felipe.Bordeu@ec-nantes.fr">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------</pre>
</body>
</html>