2010-01-27

Q_PROPERTY example

class CLLcd : public QLCDNumber
{
Q_OBJECT
Q_PROPERTY( bool editable READ editable WRITE setEditable )
public:
bool editable(){return editable_; }
void setEditable(bool editable_in){editable_=editable_in;}
private:
bool editable_;
}

2 comments:

  1. Do you know where did the Q_Property macro define?

    ReplyDelete