PDA

View Full Version : QPROPERTY With OtherDatatype



Ashutosh2k1
9th May 2011, 10:55
Hi
I have created a custom widget and i want to set different property of that custom widget .So for this i am defining the different property . However i aam able to see only those property whose data type is int .Is Something i am doing wrong
Please help

Kumar Ashutosh

MarekR22
9th May 2011, 11:37
Is Something i am doing wrong
Yes, you made a secret what you exactly did.

Ashutosh2k1
9th May 2011, 12:07
Can u Explain What i have done

MarekR22
9th May 2011, 12:27
OMG!
Yes you ask to general question so nobody is able to answer. The best answer for now is http://doc.qt.nokia.com/latest/properties.html.

Ashutosh2k1
9th May 2011, 12:33
Hi
I am doing exactly the same thing like
Q_PROPERTY(int fProp READ fProp WRITE setFProp)
Q_PROPERTY(float fSec READ fSec WRITe setSec)

now i am giving the const implementation of read and returing void with setter function so tell me what i am doing wrong why the fSec which is declared as float is not coming as the property

Relpy me

wysota
9th May 2011, 14:05
Where is it "not coming" as a property?