title: How to find object in QList by specific field in c++98?
body: <p>I have this simple class:</p>
  
  <pre><code>class SomeClass
  {
     QString key;
     QString someData;
     int otherField;
     public:
        QString getKey() { return key };
  };
  </code></pre>
  
  <p>And I have this list:</p>
  
  <pre><code>QList&lt;SomeClass*&gt; myList;
  </code></pre>
  
  <p>I want to check if myList contains object with key = "mykey1";</p>
  
  <pre><code>for(int i = 0; i &lt; myList.size(); i++)
  {
    if(myList.at(i)-&gt;getKey() == "mykey1") 
    { 
        //do something with object, that has index = i
    }
  }
  </code></pre>
  
  <p>Is there any standard function, that will do cycle and return this object or index or pointer ? , so I don't need to use cycle </p>