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

Alexander Dyagilev alervdvcw at gmail.com
Fri Mar 19 09:11:10 CET 2021


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210319/d5b46c97/attachment.html>


More information about the Interest mailing list