class People: public QObject{
public:
People(){
}
private:
QString name;
private:
QString age;
public:
QString getName(){
return this->name;
}
void setName(QString name){
this->name = name;
}
QString getAge(){
return age;
}
void setAge(QString age) {
this->age = age;
}
public:
QString &operator<<(People stu){
return this->name;
}
bool operator==(const People& other){
return (name == other.getName());//这里编译不过,为什么呢
}
};
QT的【面向对象,设计模式】是不是和VC++,一模一样的啊,有没有QT的关于这方面的书啊,貌似到处都是gui编程。求几本QT面向对象什么【thinging in QT】有木有啊