Hi all! I'm still surprised by the amount of wise and generous people in these forums

I've got another problem which I could not figure out by myself. I'm using QList as an array of pointers, because I need it to be expansible and contractible and found it was the best way to do it. For what I wanted firstly, it's working just as it should. Got some problems now, though. Showing some code:

header:
Qt Code:
  1. ...
  2. private:
  3. QList<QGraphicsEllipseItem*> point;
  4. QList<QGraphicsTextItem*> pointLabel;
  5. ...
To copy to clipboard, switch view to plain text mode 

source (working part - notice I'm successfully using the list entries as pointers):
Qt Code:
  1. void WhiteSpaceView::insertPoint(...)
  2. {
  3. point.append(new QGraphicsEllipseItem(...));
  4. point.last()->setFlags(...);
  5. pointLabel.append(...);
  6. pointLabel.last()->moveBy(...);
  7. insideScene->addItem(point.last());
  8. insideScene->addItem(pointLabel.last());
  9. }
To copy to clipboard, switch view to plain text mode 

source (not working part)
Qt Code:
  1. void WhiteSpaceView::setShowLabels()
  2. {
  3. QList<QGraphicsTextItem*>::Iterator i;
  4. for(i=pointLabel.begin();i!=pointLabel.end();++i)
  5. { i->setVisible(isShowLabels); }
  6. }
To copy to clipboard, switch view to plain text mode 

error: request for member ‘setVisible’ in ‘* i.QList<T>::iterator:perator-> [with T = QGraphicsTextItem*]()’, which is of non-class type ‘QGraphicsTextItem*’
I didn't understand this error since I successfully used the entries as pointers in the other part of the code.
Any guesses?

Thank you all in advance!