[PyQt] [SIP] wrap a class with protected destructor

2009-11-23 Thread Sébastien Petitdemange
Hi List, I try to use the new release of sip (4.9.2) and I notice that destructor wrapping is different from sip 4.7.9. And I have a compilation error: sip 4.9.2 generate this for the destructor: static void release_SinkTaskBase(void *sipCppV,int sipState) { SinkTaskBase *sipCpp =

[PyQt] Re: Problem after upgrade to PyQt 4.6.2

2009-11-23 Thread Phil Thompson
On Sun, 22 Nov 2009 13:58:00 +0100, detlev det...@die-offenbachs.de wrote: Hi, after upgrading to PyQt4 4.6.2 (from 4.6.1) I get error messages like QVariant::save: unable to save type 256. QVariant::load: unable to load type 256. What does this mean? With 4.6.1 everything was ok. I

Re: [PyQt] Having a problem with QTcpSocket

2009-11-23 Thread Nick Gaens
Nick Gaens schreef: Phil Thompson schreef: On Sat, 21 Nov 2009 17:19:00 +0100, Nick Gaens nickga...@gmail.com wrote: Hello all, I'm trying to get two clients to speak to each other, using an instance of QtNetwork.QTcpSocket for each

Re: [PyQt] Re: Problem after upgrade to PyQt 4.6.2

2009-11-23 Thread Prafulla Kiran
Hi Phil, The following piece of code throws up the error messages that Detlev has mentioned. Is there something wrong that I am doing here ? The same piece of code works fine in PyQt 4.5.* and 4.6.1 from PyQt4 import QtCore settings_ = QtCore.QSettings(Foo, Bar) qString =

Re: [PyQt] Having a problem with QTcpSocket

2009-11-23 Thread Hans-Peter Jansen
On Monday 23 November 2009, 13:27:52 Nick Gaens wrote: Nick Gaens schreef: Phil Thompson schreef: On Sat, 21 Nov 2009 17:19:00 +0100, Nick Gaens nickga...@gmail.com wrote: Hello all, I'm trying to get two clients to speak to each other, using an instance of QtNetwork.QTcpSocket for

Re: [PyQt] Having a problem with QTcpSocket

2009-11-23 Thread Nick Gaens
Hans-Peter Jansen schreef: On Monday 23 November 2009, 13:27:52 Nick Gaens wrote: Nick Gaens schreef: Phil Thompson schreef: On Sat, 21 Nov 2009 17:19:00 +0100, Nick Gaens nickga...@gmail.com wrote: Hello all, I'm trying to get two clients to speak to each other, using an

Re: [PyQt] Re: Problem after upgrade to PyQt 4.6.2

2009-11-23 Thread Phil Thompson
On Mon, 23 Nov 2009 18:08:48 +0530, Prafulla Kiran prafu...@tachyontech.net wrote: Hi Phil, The following piece of code throws up the error messages that Detlev has mentioned. Is there something wrong that I am doing here ? The same piece of code works fine in PyQt 4.5.* and 4.6.1 from

Re: [PyQt] Problem with class inheriting QDialog

2009-11-23 Thread dizou
I've got this fixed, thank you. I had another typo I didn't catch. What I am trying to do is pass a parameter through the signal. I have a QTreeWidget object under my MainWindow class with a bunch of items in it. I want the signal to pass in the item I have selected when I click my button. How

Re: [PyQt] Having a problem with QTcpSocket

2009-11-23 Thread Hans-Peter Jansen
On Monday 23 November 2009, 15:19:06 Nick Gaens wrote: Hans-Peter Jansen schreef: [...] def __init__(self):     self.server = QtNetwork.QTcpServer(self)     self.server.serverPort = 5    

Re: [PyQt] Problem with class inheriting QDialog

2009-11-23 Thread Hans-Peter Jansen
On Monday 23 November 2009, 15:56:24 dizou wrote: I've got this fixed, thank you. I had another typo I didn't catch. What I am trying to do is pass a parameter through the signal. I have a QTreeWidget object under my MainWindow class with a bunch of items in it. I want the signal to pass in

[PyQt] event object type for TabletEnterProximity

2009-11-23 Thread buddy+pyqt
When I look for the TabletEnterProximity in my application the class for the event is a regular QEvent rather than a QTabletEvent as is indicated in the documentation. I want to get out the pointer type for the event so that I know when the user changes pointers (say from the stylus to the

Re: [PyQt] Re: Problem after upgrade to PyQt 4.6.2

2009-11-23 Thread detlev
On Montag, 23. November 2009, Phil Thompson wrote: On Mon, 23 Nov 2009 18:08:48 +0530, Prafulla Kiran prafu...@tachyontech.net wrote: Hi Phil, The following piece of code throws up the error messages that Detlev has mentioned. Is there something wrong that I am doing here ? The same

Re: [PyQt] Re: Problem after upgrade to PyQt 4.6.2

2009-11-23 Thread Phil Thompson
On Mon, 23 Nov 2009 18:25:51 +0100, detlev det...@die-offenbachs.de wrote: On Montag, 23. November 2009, Phil Thompson wrote: On Mon, 23 Nov 2009 18:08:48 +0530, Prafulla Kiran prafu...@tachyontech.net wrote: Hi Phil, The following piece of code throws up the error messages that Detlev

Re: [PyQt] event object type for TabletEnterProximity

2009-11-23 Thread Phil Thompson
On Mon, 23 Nov 2009 09:54:43 -0700 (MST), buddy+p...@nmt.edu wrote: When I look for the TabletEnterProximity in my application the class for the event is a regular QEvent rather than a QTabletEvent as is indicated in the documentation. I want to get out the pointer type for the event so that

[PyQt] Compiler warnings compiling PyQt

2009-11-23 Thread detlev
Hi, I am getting a bunch of compiler warnings compiling PyQt4. They are of the sort: sip/QtCore/qdatetime.sip:214: warning: deprecated conversion from string constant to ‘char*’ In the past I learned, that compiler warnings will become bugs some time in the future. Regards Detlev -- Detlev

[PyQt] TypeError: 'int' object is not callable, running qtdemo.py

2009-11-23 Thread Mitchell Model
I am new to Qt and PyQt, though very experienced in all other relevant aspects of the situation. When I run qtdemo from a terminal I get a slew of error messages: TypeError: 'int' object is not callable Everything seems to work. Is this something I should worry about? Mac OS 10.5.8

Re: [PyQt] Having a problem with QTcpSocket

2009-11-23 Thread Nick Gaens
Hans-Peter Jansen schreef: On Monday 23 November 2009, 15:19:06 Nick Gaens wrote: Hans-Peter Jansen schreef: [...] def __init__(self):     self.server = QtNetwork.QTcpServer(self)     self.server.serverPort = 5

Re: [PyQt] Problem with class inheriting QDialog

2009-11-23 Thread dizou
Hans-Peter Jansen-2 wrote: Your best bet is using the selection model in your signal handler to figure out, which items where selected What does that mean? One thing I thought I could do is have my TreeWidget have a GetSelectedItem function. Then in my Main Window, when I click the

Re: [PyQt] Problem with class inheriting QDialog

2009-11-23 Thread Nick Gaens
dizou schreef: What does that mean? One thing I thought I could do is have my TreeWidget have a GetSelectedItem function. Then in my Main Window, when I click the button, it calls a function that will call the GetSelectedItem function, then emit a signal with the return value as a

Re: [PyQt] Having a problem with QTcpSocket

2009-11-23 Thread Phil Thompson
On Mon, 23 Nov 2009 19:39:36 +0100, Nick Gaens nickga...@gmail.com wrote: Hans-Peter Jansen schreef: On Monday 23 November 2009, 15:19:06 Nick Gaens wrote: Hans-Peter Jansen schreef: [...] def __init__(self):     self.server =

[PyQt] Re: Compiler warnings compiling PyQt

2009-11-23 Thread Phil Thompson
On Mon, 23 Nov 2009 18:54:46 +0100, detlev det...@die-offenbachs.de wrote: Hi, I am getting a bunch of compiler warnings compiling PyQt4. They are of the sort: sip/QtCore/qdatetime.sip:214: warning: deprecated conversion from string constant to ‘char*’ In the past I learned, that

Re: [PyQt] Problem with class inheriting QDialog

2009-11-23 Thread dizou
nickgaens wrote: dizou schreef: What does that mean? One thing I thought I could do is have my TreeWidget have a GetSelectedItem function. Then in my Main Window, when I click the button, it calls a function that will call the GetSelectedItem function, then emit a

Re: [PyQt] Having a problem with QTcpSocket

2009-11-23 Thread Hans-Peter Jansen
On Monday 23 November 2009, 19:39:36 Nick Gaens wrote: Hans-Peter Jansen schreef: Hmm.. That doesn't seem to work :-S.. self.server.listen(QtNetwork.QHostAddress.Any, 5):   TypeError: argument 1 of QTcpServer.listen() has an invalid type It's not that uncommon. Try:

[PyQt] Unable to install on Mac Snow Leopard

2009-11-23 Thread Kareem Yusuf
When I try to install PyQt, and run Make I get the following error ... In file included from /Library/Frameworks/QtCore.framework/Headers/qmetatype.h:45, from /Library/Frameworks/QtCore.framework/Headers/QMetaType:1, from sipAPIQtCore.h:40, from

Re: [PyQt] Unable to install on Mac Snow Leopard

2009-11-23 Thread Darren Dale
On Mon, Nov 23, 2009 at 8:25 PM, Kareem Yusuf koyu...@gmail.com wrote: When I try to install PyQt, and run Make I get the following error ... In file included from /Library/Frameworks/QtCore.framework/Headers/qmetatype.h:45,                  from