Quote Originally Posted by ayanda83 View Post
Hi guys, I have four QGraphicsItems that are stacked one on top of the other using the zValue. Each QGraphicsItem is the same size as the scene rect, so I can only display one item at a time.
Why bother with z value if only one if visible at any given time?

Quote Originally Posted by ayanda83 View Post
Qt Code:
  1. void MainWindow::on_nextBtn_clicked()
  2. {
  3. if(pageIterator <= 3){
  4. pagesList.at(pageIterator)->hide();
  5. pageIterator++;
  6. pagesList.at(pageIterator)->show();
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 
You said you had four pages. This code is allowing access to 5 entries in pagesList.

Cheers,
_