[Development] Window{} API for QML

Frederik Gladhorn frederik.gladhorn at nokia.com
Mon Nov 21 14:49:27 CET 2011


Mandag 21. november 2011 17.31.30 skrev ext Alan Alpert:
> On Mon, 21 Nov 2011 17:26:44 ext Alan Alpert wrote:
> > On Tue, 15 Nov 2011 19:24:50 ext Alan Alpert wrote:
> > > If we mostly agree, then that's a good starting point. I'll start
> > > prototyping a Window{} with the following minimal API in a
> > > QtQuick.Window import (unless someone has a better idea for the
> > > name, as this import could also contain the exposed Screen stuff
> > > that is highly related).
> > > 
> > > 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.

Hi Alan,
I just had a quick look and I'm really looking forward to this kind of qml 
element. 

I'm a bit puzzled though, this api seems a little to limited for desktop (no 
min/max size).
For mobile on the other hand, why would you need x and y?

Cheers
Frederik




More information about the Development mailing list