[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] negative index "setWidget" not working as expected
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2011-07-28 10:42:27
Message-ID: 8709f93b3835f6b667adf21b62622382 () localhost
[Download RAW message or body]

On Thu, 28 Jul 2011 11:59:53 +0200, Sebastian Elsner
<sebastianelsner@freenet.de> wrote:
> Hallo,
> 
> inserting widgets with a negative index does not work as expected. I was

> expecting -1 to add a widget to the end and -2 to insert it right before

> the last widget in the layout. Is my assumption wrong?

Yes. That's a Python convention, not a Qt/C++ convention.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic