Skip to content

Bug / Unexpected Behavior: Methods starting with Set/Reset are interpreted as property setters #4

Closed

Description

@Theneillsaaco

Description

Describe the bug / unexpected behavior
A C# method named SetMode(string) gets automatically interpreted by the bridge as the setter of a Mode property instead of remaining a callable method. This forced me to rename all such methods to Choose* (e.g., ChooseMode, ChooseAccent) and leave warning comments across my view models.

Steps to reproduce

.

Expected behavior

Describe the solution I'd like
Either emit a build warning when this collision occurs or provide an explicit opt-out attribute like [Qt.Method] so methods aren't mistaken for property setters.

Actual behavior

.

Qt Bridge for C# version

TP (C#)

Qt version

6.12

.NET SDK version

10

Operating system and architecture

No response

Tooling

No response

Logs

Activity

  1. added
    jiraTriaged; adding this label moves the issue to the Qt bug tracker and closes it
    on Nov 12, 2026
  2. github-actions commented on Nov 12, 2026

    @github-actions

    Thank you for the report. It is now tracked as QTBRIDGES-461 in the Qt bug tracker. Please follow up there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingjiraTriaged; adding this label moves the issue to the Qt bug tracker and closes it

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions