On Sun, Apr 27, 2014 at 10:37 PM, Thiago Macieira <thiago.macie...@intel.com> 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 >
Actually, you can.. http://css-tricks.com/a-couple-of-use-cases-for-calc/ And even Internet Explorer has support for it: http://caniuse.com/#feat=calc > The moment you start adding some math, you need stuff like Math.random() and > you end up again in JS. _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development