Test grid drawing using QGraphics framework.