i is an iterator. The thing it "points" to, i.e. *i, is a pointer to QGraphicsTextItem. You want this:
Qt Code:
(*i)->setVisible(isShowLabels);To copy to clipboard, switch view to plain text mode
i is an iterator. The thing it "points" to, i.e. *i, is a pointer to QGraphicsTextItem. You want this:
Qt Code:
(*i)->setVisible(isShowLabels);To copy to clipboard, switch view to plain text mode
mwgobetti (22nd November 2011)
Bookmarks