Compiles smoothly, but crashes when using the class. When I remove QList from the class the application works fine.
Is there a bug here that I don't see?
.h
#ifndef INFOMODEL_H
#define INFOMODEL_H
#include <QString>
#include <QList>
class InfoModel
{
public:
struct Active{
quint8 quantity;
quint16 validTime;
QString name;
}
private:
QList<Active> actives;//Why Crash?!
public:
InfoModel();
};
#endif // INFOMODEL_H
.cpp
#include "infomodel.h"
InfoModel::InfoModel()
{
}