[PyKDE] signals

Andreas Pakulat apaku at gmx.de
Fri Oct 6 20:22:11 BST 2006


On 06.10.06 12:00:27, Matt Chambers wrote:
> 
> Any guesses as to why this line would not conncet the signal?  Using a 
> treeview.
> 
> self.connect(self, QtCore.SIGNAL("collapsed (const QModelIndex & index)"), 
> self.cbCollapsed);

Because there's a space between the function name and the (. Signal
connection is done via string comparison. Also you need to remove the
variable name. The signals name and type of the arguments is all you
need to use.

Andreas

-- 
Future looks spotty.  You will spill soup in late evening.




More information about the PyQt mailing list