How is this done?
-
@SPlatten Shouldn't a grep (search) for "totalWaterDepth" point you to the location where it is implemented?
-
@SPlatten Give you one example:
qmlRegisterType< ProxyModelNoneEntry >( "isp", 1, 0, "ProxyModelNoneEntry" );the C++ class is defined here.
#include <QSortFilterProxyModel> class ProxyModelNoneEntry : public QSortFilterProxyModel { Q_OBJECT }in my qml class ProxyModelNoneEntry is used.
import isp 1.0 { ComboBox { id: nameComboBox x: 0 y: 0 model: ProxyModelNoneEntry { sourceModel: nameListModel } } -
-
Hi @SPlatten, as per my understanding totalWaterDepth is some Q_PROPERTY of a cpp class and qml uses the object of that particular class clubbed with . to access it.