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

Alexander Dyagilev alervdvcw at gmail.com
Fri Mar 19 09:16:42 CET 2021


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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210319/9922dc5b/attachment.html>


More information about the Interest mailing list