Re: [PyQt] A gobal variable problem in sip

2012-10-24 Thread Phil Thompson
On Wed, 24 Oct 2012 06:11:13 +0800, "D.Y Feng" wrote: > I meet a problem in my code: > > hello.h: > > #include >> >> class Hello : public QObject{ >> Q_OBJECT >> public: >> Hello(QObject *parent = 0); >> static int test(){ >> static int i=0; >> qDebug()<> retu

Re: [PyQt] A gobal variable problem in sip

2012-10-24 Thread D.Y Feng
Thanks for reply.But the problem it's not this point Let's see. hello.h: > #include > class Hello : public QObject{ > Q_OBJECT > public: > Hello(QObject *parent = 0); > static int test(){ > static int i=0; > qDebug()< return 0; > } > }; > hello.cpp >

Re: [PyQt] A gobal variable problem in sip

2012-10-24 Thread Mathias . Born
On 24.10.2012, 00:11:13 D.Y Feng wrote: > I meet a problem in my code: > hello.h: > #include > class Hello : public QObject{ > Q_OBJECT > public: > Hello(QObject *parent = 0); > static int test(){ > static int i=0; > qDebug()< return 0; > } > }; > hello.c