[Development] Question about Qt's future

Thiago Macieira thiago.macieira at intel.com
Mon Apr 28 02:34:15 CEST 2014


Em seg 28 abr 2014, às 00:55:12, André Pönitz escreveu:
> On Sun, Apr 27, 2014 at 01:37:33PM -0700, Thiago Macieira wrote:
> > Em dom 27 abr 2014, às 12:55:58, Peter Kümmel escreveu:
> > > Having imperative code on the JS side is also the root of the rejection
> > > of
> > > QML for many C++ developers. If QML would have been just a improved .ui
> > > nobody would have complained.
> > 
> > We'd end up with one of the problems of CSS which is that you can't do
> > calculations in the bindings. I can't do
> > 
> > 	width: 50% - 10em
> > 
> > The moment you start adding some math, you need stuff like Math.random()
> > and you end up again in JS.
> 
> Not true. Some (basic) math fits the "declarative" needs, and would
> be toolable. Math.random() does obviously not fit the bill.

Math.floor() then.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list