Erick Tryzelaar
Mon, 05 May 2008 13:12:21 -0700
On Mon, May 5, 2008 at 12:17 PM, Wilbert Berendsen <[EMAIL PROTECTED]> wrote: > Hi, Is this legal? > > q = QListBoxText(listbox) > q.bla = 3 > > this sets a new attribute 'bla' to 3. I could use this to have the > listboxitem > carry some other data. Yes it is legal. > Or should I subclass QListBoxItem to add such an attribute? Thats up to you :) One thing to be aware of is that if you access the field directly instead of through setters that you can't use it as a target for a slot. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt