What if you force the gridSize to be as wide as the width of the widget?
http://qtnode.net/pastebin/799