[PyQt] Segfault when activating items in a view

2010-08-09 Thread peter
Hello! No matter how I implement my own item models, they segfault when ever they are used with a view and an item is activated. Example minimalistic model I test with: import sys from PyQt4 import QtGui, QtCore class TestModel(QtCore.QAbstractTableModel): def headerData(self, section,

Re: [PyQt] Segfault when activating items in a view, more info

2010-08-09 Thread peter
Yes, the connect signal had the wrong signature, but that doesn't matter. I do not get a warning when trying to connect invalid signals, but even if I have no activated-signal connected, the darn thing still segfaults when I double click any cell. On 2010-08-09 (Mon) 09:09, pe...@lohmanders.se

Re: [PyQt] Clear/delete widget in a Layout

2010-08-09 Thread Nick Gaens
Take a look at QStackedWidget or QStackedLayout. On Mon, Aug 9, 2010 at 12:59 AM, starglider develop starglider@gmail.com wrote: Hi, I have a layout and need to remove all the widgets in the layout to populate with other widget, but didn't find a way of doing that. Any ideas. Thanks

Re: [PyQt] Segfault when activating items in a view, more info

2010-08-09 Thread Hans-Peter Jansen
Hi Peter, while not of big help, here are a few more details and the backtrace. Qt 4.6.3, sip 4.10.5, PyQt4 4.7.4. On Monday 09 August 2010, 09:42:05 pe...@lohmanders.se wrote: Yes, the connect signal had the wrong signature, but that doesn't matter. I do not get a warning when trying to

Re: [PyQt] Segfault when activating items in a view, more info

2010-08-09 Thread Andreas Pakulat
On 09.08.10 12:06:57, Hans-Peter Jansen wrote: Hi Peter, while not of big help, here are a few more details and the backtrace. Qt 4.6.3, sip 4.10.5, PyQt4 4.7.4. On Monday 09 August 2010, 09:42:05 pe...@lohmanders.se wrote: Yes, the connect signal had the wrong signature, but that

[PyQt] ImportError: no module name PyQt4 (Windows 7, 64 bit)

2010-08-09 Thread John McCabe
Hi I've just installed PyQt4 with SIP on my PC and I'm getting the error ImportError: no module name PyQt4 when I try to run the qtdemo.pyw file in the examples folder (see below). My first thought was that my PYTHONPATH needed something adding to it, but I'm fairly new to python and

Re: [PyQt] Segfault when activating items in a view, more info

2010-08-09 Thread peter
Hi Andreas! Yes, the model isn't properly implemented, still not sure why I'm getting a segfault rather than infinite loop. Might be some internal stack overflow? Anyway, thanks for your reply! I didn't even consider it would would try using children indices since a table model

Re: [PyQt] Segfault when activating items in a view, more info

2010-08-09 Thread Andreas Pakulat
On 09.08.10 12:51:48, pe...@lohmanders.se wrote: Hi Andreas! Yes, the model isn't properly implemented, still not sure why I'm getting a segfault rather than infinite loop. Might be some internal stack overflow? Anyway, thanks for your reply! I didn't even consider it would would try

Re: [PyQt] Segfault when activating items in a view, more info

2010-08-09 Thread Hans-Peter Jansen
On Monday 09 August 2010, 12:20:36 Andreas Pakulat wrote: On 09.08.10 12:06:57, Hans-Peter Jansen wrote: Hi Peter, while not of big help, here are a few more details and the backtrace. Qt 4.6.3, sip 4.10.5, PyQt4 4.7.4. On Monday 09 August 2010, 09:42:05 pe...@lohmanders.se wrote:

Re: [PyQt] ImportError: no module name PyQt4 (Windows 7, 64 bit)

2010-08-09 Thread Hans-Peter Jansen
On Monday 09 August 2010, 12:41:31 John McCabe wrote: Hi I've just installed PyQt4 with SIP on my PC and I'm getting the error ImportError: no module name PyQt4 when I try to run the qtdemo.pyw file in the examples folder (see below). Please define installed. My first thought was that

Re: [PyQt] ImportError: no module name PyQt4 (Windows 7, 64 bit)

2010-08-09 Thread Darren Dale
On Mon, Aug 9, 2010 at 6:41 AM, John McCabe j...@assen.demon.co.uk wrote:  Hi I've just installed PyQt4 with SIP on my PC and I'm getting the error ImportError: no module name PyQt4 when I try to run the qtdemo.pyw file in the examples folder (see below). My first thought was that my

Re: [PyQt] Segfault when activating items in a view, more info

2010-08-09 Thread Andreas Pakulat
On 09.08.10 13:31:15, Hans-Peter Jansen wrote: On Monday 09 August 2010, 12:20:36 Andreas Pakulat wrote: If you use this model on a treeview you'll probably end up in an infinite tree size. The reason is that you're returning a child-count of 2 for each and every index (and the treeview is

[PyQt] dip model types, properties, and syntax

2010-08-09 Thread Darren Dale
I have a question about using dip model attributes as properties. The documentation at http://www.riverbankcomputing.com/static/Docs/dip/model_tutorial.html#attributes-are-properties gives an example: class ExampleModel(Model): name = Str def _get_name(self): return self._name

Re: [PyQt] ImportError: no module name PyQt4 (Windows 7, 64 bit)

2010-08-09 Thread Hans-Peter Jansen
Hi John, I've no idea, why you're dragging this thread into a private discussion. Helping others is always a community effort, and keeping it public allows others to keep in context... If you ask me, I prefer to receive anything via the list, and not a personal copy, but who's asking me? On

[PyQt] pyqt scripts stopped working!!?

2010-08-09 Thread stephen76
Hi, A number of my old pyqt scripts have stopped working. Basically I am following the example from .. http://www.sidefx.com/docs/houdini11.0/hom/cookbook/pyqt/part1/ My scripts used to work but now when I run the line app = QtGui.QApplication(['houdini']) Houdini crashes with the error ...

Re: [PyQt] ImportError: no module name PyQt4 (Windows 7, 64 bit)

2010-08-09 Thread John McCabe
On 09/08/2010 16:40, Hans-Peter Jansen wrote: Hi John, I've no idea, why you're dragging this thread into a private discussion. Ooops - sorry about that. That was never my intention; it's a long time since I've joined a mailing list that has the default reply address for messages distributed

Re: [PyQt] houdini - pyqt scripts stopped working!!?

2010-08-09 Thread stephen76
solved I had .. export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH in my environment for some reason once I commented it out everything worked! cheers s stephen76 wrote: Hi, A number of my old pyqt scripts have stopped working. Basically I am following the example from ..

[PyQt] Martino Massalini wants you to use Dropbox

2010-08-09 Thread Dropbox
Martino Massalini wants you to use Dropbox to sync and share files online and across computers. Get started here: http://www.dropbox.com/link/45.4DwuYaN_fr.4DwuYaN_fr/NjI4NTU5NjY2Nw - The Dropbox Team To stop receiving invites from