[Development] QML import versions

Giuseppe D'Angelo dangelog at gmail.com
Mon Sep 21 21:25:27 CEST 2015


Just to nitpick,

On Sun, Sep 20, 2015 at 11:51 PM, Alan Alpert <416365416c at gmail.com> wrote:
> Here is the scenario:
>
> import QtQuick 2
>
> Item {
>     property bool scrollGestureEnabled: false
>     MouseArea {
>         onClicked: console.log(scrollGestureEnabled)
>     }
> }
>
> In QtQuick 2.4 that would get the scrollGestureEnabled off of the
> Item, in QtQuick 2.5 it resolves to the new MouseArea property. So
> code like this will inexplicably break at run time when the system Qt
> updates :( .

I totally agree that one can't just "import the latest" without
breaking code, just please don't use a language mis-feature
(unqualified properties propagating down) to support it :-)

My 2 c,

-- 
Giuseppe D'Angelo



More information about the Development mailing list