[PyKDE] ListView weirdness

Geoff Gerrietts geoff at gerrietts.net
Fri May 16 03:48:00 BST 2003


Quoting Ulrich Berning (ulrich.berning at desys.de):
> I guess it must have something to do with immediate signal delivery when 
> setSelected() is called inside the slot routine.
> Blocking the signals in the slot routine does not help. If the 
> setSelected() is called outside the slot routine, it works.
> A QTimer started with a timeout value of 0 helps do delay the 
> setSelected() call until the slot routine has finished.
> 
> See the changed sample code below.

This is excellent, thanks! I would not have thought to go this route,
but it's a much simpler workaround than I was edging toward.

--G.

-- 
Geoff Gerrietts <geoff @ gerrietts.net> "Many a man's reputation would not 
                                         know his character if they met on 
http://www.gerrietts.net/                the street." --Elbert Hubbard




More information about the PyQt mailing list