[PyQt] APPCrash on exit, Qt4 MainWindow

2013-07-02 Thread Erik
Python 2.7.4x32, Qt 4.8.4 (4.10.2-py27)x32 on Windows 7 64-bit OS PC's (multiple machines) I'm having a reproducible APPCRASH (in QtGUI4.dll) on exit of any application I write that uses a QMainWindow and a menuBar, if the window contains > 10 other widgets. If I remove widgets down below the thre

[PyQt] [SIP] How to reasonably implement writable global variables?

2013-07-02 Thread Casper Ti. Vector
Hello list, I am a newcomer to SIP (only one day experience), and please tell me if I make a mistake. Thanks :) I found it quite hard to make read-write interface for (module-wide) global variables (other than explicitly writing C/C++ functions to get and set them). For example: test.sip: > %Mo

[PyQt] Qt4/Qt5 incompatible results of QTableWidget.selectedItems()?

2013-07-02 Thread T.N.T.
Hello When I have a QTableWidget with the following settings: tw.setColumnCount(2) tw.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) and say I have selected the first two rows, then tw.selectedItems() returns a list of 4 items. Now in PyQt4 compiled with Qt4 the order is: [

Re: [PyQt] Qt4/Qt5 incompatible results of QTableWidget.selectedItems()?

2013-07-02 Thread Andreas Pakulat
Hi, Qt makes no guarantee on the order of returned items, it merely guarantee's that all items that are selected are returned in a list. There's no incompatibility, just a change in a behaviour that is not explicitly defined. Andreas On Tue, Jul 2, 2013 at 6:31 PM, T.N.T. wrote: > Hello > > W

Re: [PyQt] Qt4/Qt5 incompatible results of QTableWidget.selectedItems()?

2013-07-02 Thread T.N.T.
On 02.07.2013 20:38, Andreas Pakulat wrote: Hi, Qt makes no guarantee on the order of returned items, it merely guarantee's that all items that are selected are returned in a list. There's no incompatibility, just a change in a behaviour that is not explicitly defined. Thank you. So it was ju