Shawn
27th May 2007, 14:56
code like this:
Paser::Paser(QObject *parent)
: QXmlDefaultHandler()
QXmlInputSource inputSource(&file);
QXmlSimpleReader reader;
Paser *handler;
reader.setContentHandler(handler);
reader.setErrorHandler(handler);
bool xx;
xx = reader.parse(inputSource);
I trace the steps when debugging, seems that the program never enter the "paser.cpp" file, what does that mean?
Paser::Paser(QObject *parent)
: QXmlDefaultHandler()
QXmlInputSource inputSource(&file);
QXmlSimpleReader reader;
Paser *handler;
reader.setContentHandler(handler);
reader.setErrorHandler(handler);
bool xx;
xx = reader.parse(inputSource);
I trace the steps when debugging, seems that the program never enter the "paser.cpp" file, what does that mean?