On 23 July 2015 at 01:03, Guido Seifert <warg...@gmx.de> wrote:
>>> - the QObject's connections? Will all copies emit the same signals, will 
>>> all copies have their slots called?
>
> Worked somehow... probably through magic.
>
> This was my problem. It really looked like we could get away with it. The 
> whole class did not really need to be a
> QObject. It was only a QObject because it was used from QML. The whole design 
> was questionable.

Qt 5.5 introduced Q_GADGET for this purpose. What's more, you can
safely store a Q_GADGET inside a container.

Note that Q_GADGET doesn't support signals and slots though.


Regards,
Sze-Howe
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to