hi, there
suppose I define
Qt Code:
  1. QList<MyStuff* > list;
To copy to clipboard, switch view to plain text mode 
in the header file. And I need to initialize an empty list in the initialization list of MyClass. How can I do that?
Qt Code:
  1. MyClass::MyClass() : list(0) {...} // won't compile
  2. MyClass::MyClass() : list() {...} // not initialized
  3. MyClass::MyClass() : list() {QList()} // not initialized
  4. //what's the correct way to do that? It's fine if I have to use QList<MyStuff* > * list.
To copy to clipboard, switch view to plain text mode 
Thanks for help. I'm waiting online.
zl