Bug 419854 - Using dates/times for properties and function arguments
Summary: Using dates/times for properties and function arguments
Status: RESOLVED UNMAINTAINED
Alias: None
Product: rust-qt-binding-generator
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jos van den Oever
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-08 17:43 UTC by Jon Pacheco
Modified: 2024-09-22 20:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Pacheco 2020-04-08 17:43:00 UTC
Hi, I was looking into using this project for a side-project of mine, and was wondering how to use dates/times for properties and function arguments.

For the Rust side of the interface code, could the DateTime structs from the `chrono` crate be used? i.e. the Qt type -> `chrono` type mappings would be:

- QDate -> NaiveDate
- QTime -> NaiveTime
- QDateTime -> DateTime (since QDateTime is timezone aware)
Comment 1 Christoph Cullmann 2024-09-22 20:08:43 UTC
rust-qt-binding-generator is no longer maintained, please try more recent alternatives like

https://github.com/KDAB/cxx-qt/