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
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