PDA

View Full Version : Q_PROPERTY space issue



nikhilqt
24th June 2010, 15:16
Hi,

I have a query regarding having space for 'name' parameter for Q_PROPERTY.


Q_PROPERTY(QString MyName READ getName WRITE setName)

For an example, If we want to have a space for 'name' param i.e.,

Q_PROPERTY(QString My Name READ getName WRITE setName)

How to achieve the same ? Could you please help me out?

Thanks,
Nikhil

high_flyer
24th June 2010, 15:25
C/C++ does not allow variable names with spaces.