Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What an Interesting question, who know why?
Qt 6.11 is out! See what's new in the release blog

What an Interesting question, who know why?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 849 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zhangsi
    wrote on last edited by
    #1

    Add the code below and save it into a test.cpp.
    Open test.cpp by Qt Creator 3.5.1 (Qt Version: 5.5.1, VS2010, WIN7), then CPU...

    0_1515136360850_oh.png

    #include <map>
    using namespace std;
    static map<int, int> testMap;
    void test()
    {
        map<int, int>::iterator it;
        for (it = testMap.begin(); it != testMap.end(); ++it)
        {
            int value = it->second;
        }
    }
    
    aha_1980A 1 Reply Last reply
    0
    • Z zhangsi

      Add the code below and save it into a test.cpp.
      Open test.cpp by Qt Creator 3.5.1 (Qt Version: 5.5.1, VS2010, WIN7), then CPU...

      0_1515136360850_oh.png

      #include <map>
      using namespace std;
      static map<int, int> testMap;
      void test()
      {
          map<int, int>::iterator it;
          for (it = testMap.begin(); it != testMap.end(); ++it)
          {
              int value = it->second;
          }
      }
      
      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @zhangsi

      QtCreator 3.5.1 is quite old and will not get any more fixes. Try updating to 4.5. If the problem still exists, create a bugreport at bugreports.qt.io

      Thanks

      Qt has to stay free or it will die.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved