What is meaning of error: 'ev->QMouseEvent::pos' does not have class type
<p>I am programming in Qt and in between an event handler I wrote this:</p>

<pre><code>void PaintedTextBrowser::mouseMoveEvent(QMouseEvent *ev)
{
    ...
    QPoint *point = new QPoint(0, ev-&gt;pos.y());
    ...
}
</code></pre>

<p>And I get the error on compile:</p>

<blockquote>
  <p>error: 'ev->QMouseEvent::pos' does not have class type</p>
</blockquote>

<p>But when I modify the code as:</p>

<pre><code>void PaintedTextBrowser::mouseMoveEvent(QMouseEvent *ev)
{
    ...
    QPoint pos = ev-&gt;pos();
    QPoint *point = new QPoint(0, pos.y());
    ...
}
</code></pre>

<p>it works fine. What is the concept that I am missing here?</p>
