Re: [Development] QML Singleton

2014-03-09 Thread Ben Lau
On 10 March 2014 04:59, Steve Gold wrote: > 1. Can a QML singleton contain signals and functions that are accessed > by other QML types or just properties? > > no. However, you may declare enum type by making C++ QML component. [#QTBUG-14861] Allow enum types to be defined from QML side - Qt

[Development] QML Singleton

2014-03-09 Thread Steve Gold
1. Can a QML singleton contain signals and functions that are accessed by other QML types or just properties? 2. I specified pragma singleton as the first line in MySingleton.qml and have property string myText: “” in MySingleton.qml, specified import “.” at the top of main.qml,