Solved setHours() do not work
Hello, that's my very first post here.
Let me skip to the point. In my qml file setHours() function, (part of date prototype) does not work. However, getters do work. Here is my code:
var new_time = (calendarForDate.chosen_Hour.getMinutes() + 1)%60 console.log(new_time) // new_time is calculated properly calendarForDate.chosen_Hour.setMinutes(new_time) console.log(calendarForDate.chosen_Hour.getMinutes()) // now it's the same as before anyway
My question - I don't know...
Is there something wrong with that?
Is that a bug?
I'm using qtcreator under KDE Mint but it's installation directly from qt, not Ubuntu SDK. I'm more c++ man, so I'm not sure.
A Former User last edited by
Hi! Can you create a complete minimal working example qml file?
Luckily I found solution myself :)
In this cause that code was part of onClicked property.
Thanks for you attention.