Re: [PyQt] Bugs galore in QAbstractTableModel???

2010-11-28 Thread Vicent Mas
2010/11/28 Andreas Pakulat ap...@gmx.de: On 27.11.10 21:27:55, Ian wrote: [...]     def rowCount(self, parent = None):         ''' return No of rows of data. parent is a QModelIndex '''         return len(self.view) This is wrong, even for table models you have to take care to return the

[PyQt] issues with webkit javascript interaction

2010-11-28 Thread Hans-Peter Jansen
Hi Phil, here's the next issue, this time related to webkit javascript interaction. The code is ported from Qt's webkit/formextractor example. It tries to make use of addToJavaScriptWindowObject(), which should be allow to interact with javascript code. Unfortunately, triggering submit, which

Re: [PyQt] Bugs galore in QAbstractTableModel???

2010-11-28 Thread Wolfgang Rohdewald
On Sonntag 28 November 2010, Steve Borho wrote: I found an updated version of the file here: http://bazaar.launchpad.net/~bzr/ubuntu/maverick/qbzr/bzr-ppa/ annotate/head:/lib/tests/modeltest.py this still needs more updates. Mostly for editable models. Like -c = insert.pop() +

Re: [PyQt] SIP v5 Roadmap

2010-11-28 Thread Giovanni Bajo
On lun, 2010-11-22 at 16:06 +, Phil Thompson wrote: I've added a roadmap for SIP v5 at... http://www.riverbankcomputing.com/software/sip/roadmap Comments welcome. Hi, I'm concerned by this: The code generator will

Re: [PyQt] issues with webkit javascript interaction

2010-11-28 Thread Phil Thompson
On Sun, 28 Nov 2010 13:15:15 +0100, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, here's the next issue, this time related to webkit javascript interaction. The code is ported from Qt's webkit/formextractor example. It tries to make use of addToJavaScriptWindowObject(), which should be

Re: [PyQt] SIP v5 Roadmap

2010-11-28 Thread Phil Thompson
On Sun, 28 Nov 2010 15:35:38 +0100, Giovanni Bajo ra...@develer.com wrote: On lun, 2010-11-22 at 16:06 +, Phil Thompson wrote: I've added a roadmap for SIP v5 at... http://www.riverbankcomputing.com/software/sip/roadmap Comments welcome. Hi, I'm concerned by this:

Re: [PyQt] Bugs galore in QAbstractTableModel???

2010-11-28 Thread Steve Borho
On Sun, Nov 28, 2010 at 8:18 AM, Wolfgang Rohdewald wolfg...@rohdewald.de wrote: On Sonntag 28 November 2010, Steve Borho wrote: I found an updated version of the file here: http://bazaar.launchpad.net/~bzr/ubuntu/maverick/qbzr/bzr-ppa/ annotate/head:/lib/tests/modeltest.py this still needs

[PyQt] More info needed on QAbstractTableModel

2010-11-28 Thread Ian
Hi, First - thanks to Andreas and Baz for previous help. What I need to do now is sort the rows - keeping the selected row selected. Currently if I sort, when row 6 is selected, after the sort, the new row 6 is selected. I want to have the selection move with the sorting. I have found the

Re: [PyQt] SIP v5 Roadmap

2010-11-28 Thread Giovanni Bajo
On dom, 2010-11-28 at 15:12 +, Phil Thompson wrote: On Sun, 28 Nov 2010 15:35:38 +0100, Giovanni Bajo ra...@develer.com wrote: On lun, 2010-11-22 at 16:06 +, Phil Thompson wrote: I've added a roadmap for SIP v5 at... http://www.riverbankcomputing.com/software/sip/roadmap

Re: [PyQt] SIP v5 Roadmap

2010-11-28 Thread Phil Thompson
On Sun, 28 Nov 2010 18:26:58 +0100, Giovanni Bajo ra...@develer.com wrote: On dom, 2010-11-28 at 15:12 +, Phil Thompson wrote: On Sun, 28 Nov 2010 15:35:38 +0100, Giovanni Bajo ra...@develer.com wrote: On lun, 2010-11-22 at 16:06 +, Phil Thompson wrote: I've added a roadmap for SIP

Re: [PyQt] SIP v5 Roadmap

2010-11-28 Thread Giovanni Bajo
On dom, 2010-11-28 at 18:17 +, Phil Thompson wrote: On Sun, 28 Nov 2010 18:26:58 +0100, Giovanni Bajo ra...@develer.com wrote: On dom, 2010-11-28 at 15:12 +, Phil Thompson wrote: On Sun, 28 Nov 2010 15:35:38 +0100, Giovanni Bajo ra...@develer.com wrote: On lun, 2010-11-22 at

[PyQt] embedding iconic pushButton in TableView and/or TreeView

2010-11-28 Thread James Polk
'nuther wh!...I got a button!, lol... A button in the first column of a TreeView on startup.. Unfortunately, it's not a PushButton, so it's not pushing, lol... but surely that's something I'm overlookingbut apparently QStyleOption has no PushButton,but maybe I need to pass an

Re: [PyQt] SIP v5 Roadmap

2010-11-28 Thread Phil Thompson
On Sun, 28 Nov 2010 20:04:34 +0100, Giovanni Bajo ra...@develer.com wrote: On dom, 2010-11-28 at 18:17 +, Phil Thompson wrote: On Sun, 28 Nov 2010 18:26:58 +0100, Giovanni Bajo ra...@develer.com wrote: On dom, 2010-11-28 at 15:12 +, Phil Thompson wrote: On Sun, 28 Nov 2010 15:35:38