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&dt)const; using this QML code: property mystring:App.loc.dateTimeToString(Date()) When I debug dateTimeToString method, I see that dt is invalid.
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest