hi all,<div><br></div><div>i've a problem with isColumnHidden</div><div><br></div><div><div> def __setupContextMenu(self):</div><div> self.treeView_societe.header().setContextMenuPolicy(Qt.CustomContextMenu)</div>
<div> self.__menu = QMenu(self)</div><div> for a in range(len(TabSoc)):</div><div> act = QAction(TabSoc[a], self)</div><div> act.setCheckable(True)</div><div> act.setChecked(not self.treeView_societe.isColumnHidden(a))</div>
<div> act.setData(QVariant(a))</div><div> self.__menu.addAction(act)</div><div> </div><div> self.connect(self.treeView_societe.header(), SIGNAL('customContextMenuRequested(const QPoint &)'),self.__showContextMenu)</div>
<div> self.connect(self.__menu, SIGNAL('triggered(QAction *)'),self.__ColumnHidden)</div><div><br></div><div>in this code self.treeView_societe.isColumnHidden(a) return always false</div><div><br></div><div>
<br></div><div>for information, treeView_societe is my own class :</div><div><div>class SocieteTree(QTreeView):</div><div> def __init__(self, parent = None):</div><div> print "debut init SocieteTree"</div>
<div> QTreeView.__init__(self, parent)</div><div> self.setObjectName("SocieteListing")</div><div><br></div><div>where is my mistake ?</div><div><br></div><div>thx for your help </div><div><br></div>
<div>Kermit</div></div></div>