Your code shouldn't even compile. Please check it out.
It should probably be:
Qt Code:
  1. rectItems[i]->hide();
To copy to clipboard, switch view to plain text mode