[GH-ISSUE #130] Collections example warnings #75

Closed
opened 2026-05-05 11:03:37 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @vadi2 on GitHub (May 5, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/130

Running the collections example produces the following warnings:

QQmlExpression: Expression file:///<>/qmlnet-examples/src/Features/pages/Collections.qml:50:21 depends on non-NOTIFYable properties:
    Contact::phoneNumber
QQmlExpression: Expression file:///<>/qmlnet-examples/src/Features/pages/Collections.qml:47:21 depends on non-NOTIFYable properties:
    Contact::name
Originally created by @vadi2 on GitHub (May 5, 2019). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/130 Running the collections example produces the following warnings: ``` QQmlExpression: Expression file:///<>/qmlnet-examples/src/Features/pages/Collections.qml:50:21 depends on non-NOTIFYable properties: Contact::phoneNumber QQmlExpression: Expression file:///<>/qmlnet-examples/src/Features/pages/Collections.qml:47:21 depends on non-NOTIFYable properties: Contact::name ```
Author
Owner

@pauldotknopf commented on GitHub (May 8, 2019):

When you bind to a property in QML, it is assumed you want QML to also "watch" the property for changes. It can't do that if it has no signal to listen to for changes.

[NotifySignal] // This is the important part
public string TestProperty
{
    get => _testProperty;
    set => this.SetProperty(ref _testProperty, value);
}
<!-- gh-comment-id:490474858 --> @pauldotknopf commented on GitHub (May 8, 2019): When you bind to a property in QML, it is assumed you want QML to also "watch" the property for changes. It can't do that if it has no signal to listen to for changes. ```c# [NotifySignal] // This is the important part public string TestProperty { get => _testProperty; set => this.SetProperty(ref _testProperty, value); } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#75
No description provided.