4

static in Qt c++ Embeded Python

view full story
linux-howto

http://www.unix.com – 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 Code: 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 Code: class QPython : public QObject { private: public: static QString strChar; static PuObject* AddFile(PyObject* pSelf, PyObject* pArgs) { QList<QStr (HowTos)