Description
When importing `snake_case` from `__feature__` I would expect Qt properties defined in Python to be automatically converted to camelCase naming for QML.
The property `some_value` in the example can't be accessed from within QML, I would expect to be able to access the property using `someValue` (marked [1]). Note that it still possible to access the property using Javascripts [ ] syntax and the snake_case name.
Moreover, the same is true for Slots (marked [2]) and Signals (marked [3]). I know that the Slot decorator has an optional `name` argument, but an auto-conversion would be preferred.
The code preview here is terrible, so I hosted the example on GitHub: https://github.com/machinekoder/pyside6_snake_case_example
Attachments
Issue Links
- is duplicated by
-
PYSIDE-1927 snake_case addition to convert Qt property/signal names to camelCase for QML
-
- Reported
-