Hi,
in my Header mainwindow.h i declare a struct and a QList inside my MainWindow class.
Qt Code:
private: .... struct Parameterlevel{ QString Levelname; quint8 Levelindex; quint8 Securitylevel; .... QList<Parameterlevel> TabList; };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?


Reply With Quote


Thank You.

Bookmarks