https://bugs.kde.org/show_bug.cgi?id=419854

            Bug ID: 419854
           Summary: Using dates/times for properties and function
                    arguments
           Product: rust-qt-binding-generator
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

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)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to