Hi,

in my Header mainwindow.h i declare a struct and a QList inside my MainWindow class.
Qt Code:
  1. private:
  2. ....
  3. struct Parameterlevel{
  4. QString Levelname;
  5. quint8 Levelindex;
  6. quint8 Securitylevel;
  7. ....
  8. QList<Parameterlevel> TabList;
  9. };
To copy to clipboard, switch view to plain text mode 

I want to create a list where I can add the Parameterlevels later but if I put the declaration of the List in my header, I can't compile the code. My program crashes. If the declaration of the list is in the .cpp there seems to be no problem with it.
Where is my mistake?