Qt 5.6 Ubuntu x64

QMap <QString, int> map; map.insert("key1", 1); map["key2"] = 1; 

In debager value

not accessible

No items.

  • one
    Debagger may not display the contents of the mother. Try to just print the values ​​of the mother according to the keys - Malov Vladimir
  • @MalovVladimir really is. - shaman888
  • one
    If your function only has these three lines and the value of the map is not used in any way, the compiler can simply throw away its creation. And not one debager will not show the values. - KoVadim
  • @KoVadim I use a global variable, and this I tried as an example. Variable used - shaman888
  • The compiler is smart enough to work wonders with code. Without a complete code it is difficult to say something. - KoVadim

0