Re: [Interest] Best software engineering practices for QML

2024-09-24 Thread NIkolai Marchenko
> Do you really care? What are you trying to prevent? Why? It helps prevent brainless leakage of the class implementation into the using code. Sure, people can still try to find it using workarounds but they will be that much less inclined to do so. The point about extra object is pretty valid th

Re: [Interest] Best software engineering practices for QML

2024-09-24 Thread Pierre-Yves Siret
Le mar. 24 sept. 2024 à 13:52, Federico Ferri a écrit : > Greetings, > > during last years of development with QML I always wondered how to solve > certain software engineering problems. > > First, defining private properties: I have seen sometimes doing: > > Item { > property int publicProp:

[Interest] Best software engineering practices for QML

2024-09-24 Thread Federico Ferri
Greetings, during last years of development with QML I always wondered how to solve certain software engineering problems. First, defining private properties: I have seen sometimes doing: Item { property int publicProp: 40 + state.privateProp QtObject { id: state property