Re: [Interest] QML: Javascrit Date() --> C++ QDateTime is not supported?

2021-03-19 Thread Alexander Dyagilev
Oh... It was required to pass "new Date()" instead of "Date()". On 3/19/2021 11:11 AM, Alexander Dyagilev wrote: I'm trying to call method of C++ object: Q_INVOKABLEQStringdateTimeToString(constQDateTime)const; using this QML code: property mystring:App.loc.dateTimeToString(Date()) When I

[Interest] QML: Javascrit Date() --> C++ QDateTime is not supported?

2021-03-19 Thread Alexander Dyagilev
I'm trying to call method of C++ object: Q_INVOKABLEQStringdateTimeToString(constQDateTime)const; using this QML code: property mystring:App.loc.dateTimeToString(Date()) When I debug dateTimeToString method, I see that dt is invalid. ___ Interest