qmlscatter example: Give a default size to the view item

On OS X the content item of the view must have a valid width
or height.

Change-Id: I6903671a9bd39511a4d0d649819b68930597260d
Task-number: QTRD-3469
Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
This commit is contained in:
Caroline Chao 2015-03-10 09:38:32 +01:00
parent 0e9d60eee9
commit 0a18b2fffc
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ import "."
Rectangle {
id: mainView
//! [1]
width: 500
height: 500
//! [4]
Data {