[Development] Window{} API for QML

Adriano Rezende adriano.rezende at openbossa.org
Mon Nov 21 15:50:28 CET 2011


2011/11/21 Alan Alpert <alan.alpert at nokia.com>:
> On Mon, 21 Nov 2011 17:26:44 ext Alan Alpert wrote:
>> On Tue, 15 Nov 2011 19:24:50 ext Alan Alpert wrote:
>> > Window{ //Not inheriting QQuickItem, creates a new top level window.
>> >
>> >     property int x
>> >     property int y
>> >     property int width
>> >     property int height
>> >     property bool visible
>> >     property Orientation requestedOrientation // { Portrait, Landscape, Š
>> >     }
>> >
>> > }
>>
>> http://codereview.qt-project.org/#change,9258 in qtdeclarative and
> Whoops, that should be http://codereview.qt-project.org/#change,9352 in
> qtdeclarative.

I think it's in a good shape for an initial API.
Some missing features can be added later, like min/max size, modality and so on.

Is the Window module really necessary. I think it's a bit redundant to
have Window.Window { }.

Br,
Adriano



More information about the Development mailing list