swagger-api / swagger-api/swagger-codegen

[qt5cpp] QString & or other objects by reference destroys signal handler args in QML

Open
#9,034 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

https://github.com/swagger-api/swagger-codegen/blob/e15bbc961e028162ad288bec66b2b08d24ef5fd7/modules/swagger-codegen/src/main/resources/qt5cpp/api-header.mustache#L36

Received args are registered in namespace but "undefined".
Passing QString by value (i.e. copy constructed) works.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.