use getiterator instead of iter
Merge remote-tracking branch 'origin/template-test-case-for-graphic-contexts' into template-test-case-for-graphic-contexts

# By Corran Webster
# Via Corran Webster (1) and Ioannis Tziakos (1)
* origin/template-test-case-for-graphic-contexts:
  Fix unit test for qpainter.