Hello everyone,


I'm a newer for Qt, so pls forgiving the stupid question I asked,thanks in advance.
here is the situation :
I want to structure a class which need inherit from both class QFile and class QXmlStreamReader. then I did like this,
Qt Code:
  1. #ifndef STREAMMANAGER_H
  2. #define STREAMMANAGER_H
  3.  
  4. #include <QFile>
  5. #include <QXmlStreamReader>
  6.  
  7. class StreamManager : public QFile ,public QXmlStreamReader
  8. {
  9. public:
  10.  
  11.  
  12. private:
  13.  
  14. };
  15. #endif STREAMMANAGER_H
To copy to clipboard, switch view to plain text mode 

but now in main.cpp, I want open a xml file, I just don't know how to do that, as usuall, I will use QFile Object, something like "QFile *file = new QFile("/ex/ex.xml");"
, but ,how can I do now?
Qt Code:
  1. ....
  2. ....
  3. int main(int argc, char *argv[])
  4. {
  5. StreamManager *mym = new StreamManager();
  6. return app.exec();
  7. }
To copy to clipboard, switch view to plain text mode 

one more thing, class StreamManager is a inherited class, and I found I can't create it's own initialized function,what wrong?

Many thanks!