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);
}
};