swagger-api / swagger-api/swagger-codegen
[qt5cpp] QString & or other objects by reference destroys signal handler args in QML
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Received args are registered in namespace but "undefined".
Passing QString by value (i.e. copy constructed) works.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at modules/swagger-codegen/src/main/resources/qt5cpp/api-header.mustache around line 36 and inspect how signal handler arguments are declared. Reproduce the generated Qt5 C++ API behavior in QML with QString passed by reference versus by value. Done means received arguments remain defined in QML when reference types are used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100