-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
A-rustArea: Rust glueArea: Rust glueC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.E-mediumCall for participation: Experience needed to fix: Medium / intermediateCall for participation: Experience needed to fix: Medium / intermediateP-mediumMedium priorityMedium priority
Description
Not sure if it is a documented and supported feature of Q_PROPERTY / MOC, but apparently it supports static members (that would be associated methods in Rust) for READ & WRITE, i.e. property getters and setters.
Examples include QCoreApplication class and its application{Name,Version},organization{Name,Domain}
properties which could be set from any context without obtaining an instance of the application first. Documentation handles this pretty bad though. There is no indication in "Property Documentation" section that "Access functions" are static; however they at listed separately in "Static Public Members" table.
I think that wouldn't too hard to implement in Rust. And I might use it for a driver singleton in my project.
Metadata
Metadata
Assignees
Labels
A-rustArea: Rust glueArea: Rust glueC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.E-mediumCall for participation: Experience needed to fix: Medium / intermediateCall for participation: Experience needed to fix: Medium / intermediateP-mediumMedium priorityMedium priority