Furkanzmc / QML-Coding-Guide

A collection of good practices when writing QML code - https://doc.qt.io/qt/qtqml-index.html
The Unlicense
538 stars 80 forks source link

Provide alternatives for CI-1: Avoid Context Properties #10

Closed Daguerreo closed 2 years ago

Daguerreo commented 3 years ago

CI-1: Avoid Context Properties

Should be useful provide alternative to using context properties, like referring to singleton or qml registered type.

OlivierLDff commented 3 years ago

Lots have been discussed here : https://github.com/Furkanzmc/QML-Coding-Guide/issues/9

Furkanzmc commented 3 years ago

I also incorporated our discussions into the guideline with this commit: https://github.com/Furkanzmc/QML-Coding-Guide/commit/559f8b75e5f0193346187024ce09d18c74f04e8a

I believe the following items already provide an alternative. Although, it may not have come across that way. I'll see If I can improve it.

Thanks for raising the issue @Daguerreo .

And thanks for referring to the discussion @OlivierLDff.