Static in Qt c++ Embedded Python

i have a problem in Use static variables in Qt C++ under CentOS 5.5
i need to pass a variable from GUI to class all function are static.
it always give me that error error: undefined reference to strChar

class QPython : public QObject
{
private:
public:
QString strChar;

static PuObject* AddFile(PyObject* pSelf, PyObject* pArgs)
{
QList<QString> str;
str.append(strChar);
}
};

also i try this code it has also the same error

class QPython : public QObject
{
private:
public:
static QString strChar;

static PuObject* AddFile(PyObject* pSelf, PyObject* pArgs)
{
QList<QString> str;
str.append(strChar);
}
};

The second code is correct - you need to declare strChar to be static if you want to call it from static functions without creating instances of the object.

However, all this does is declare strChar - it does not define it. To do that, you need to stick something like:

QPython::strChar;

In some source file.