Why make it static? Make it global but non-static. If you make it static, it'll only be available in one compilation unit and you'll need to create two global functions to access it from other compilation units. Try this instead:
In one of implementation files:
namespace ExaltedData {
QMap<QString,NatureData> natures;
}
namespace ExaltedData {
QMap<QString,NatureData> natures;
}
To copy to clipboard, switch view to plain text mode
and in every file which needs to use it add:
namespace ExaltedData {
extern QMap<QString,NatureData> natures;
}
namespace ExaltedData {
extern QMap<QString,NatureData> natures;
}
To copy to clipboard, switch view to plain text mode
Bookmarks