how to use signals and slots in blackberry cascades -
- how read data qml page using signals
- how wite received data in qml page using signals
i excatly expect qtsignals , slots concepts. please tell how read , wrote data qml page.
try following syntax , sample github
1.hpp file
q_property(qstring companyname read companyname write setcompanyname notify companynamechanged) void companynamechanged(); void setcompanyname(const qstring &company); qstring companyname() const; qstring m_company;
2.cpp file
void applicationui::setcompanyname(const qstring &company) { if (m_company == company) return; m_company = company; emit companynamechanged(); } qstring applicationui::companyname() const { return m_company; }
------------------- sample full code here (click here)-----------
Comments
Post a Comment