After inizialized a QMap in the .h file in this way
QMap<QString, QString> *map;
When I declare in the constructor
map = new QMap<QString, QString>;
map["one"] = "foobar";
error: invalid types 'QMap*[const char [4]]' for array subscript map["one"] = "foobar"; ^
Where is the problem?