[Interest] Tumbler not working

Mitch Curtis mitch.curtis at qt.io
Thu Nov 10 09:53:01 CET 2016


> -----Original Message-----
> From: Interest [mailto:interest-bounces+mitch.curtis=qt.io at qt-project.org]
> On Behalf Of Jason H
> Sent: Wednesday, 9 November 2016 10:04 PM
> To: Qt Interest <interest at qt-project.org>
> Subject: [Interest] Tumbler not working
> 
> Simply, using a tumbler, and trying to set it to a value by:
>     listTumbler.setCurrentIndexAt(0, list.indexOf(value))
> 
> does not work.
> Initialized as:
> property var list: ["A", "B", "C"]
> value: "B"
> 
> listTumbler has one TumblerColumn child where "model: list"
> 
> 
> console.log("listTumbler.setValue",value, list.indexOf(value), list);
> outputs:
> listTumbler.setValue B 1 [A,B,C]
> 
> But the UI never updates, and internally, the value never updates either.
> 
> What am I doing wrong?
> (Demo attached)

Please submit a bug report and I'll take a look into it.


More information about the Interest mailing list