1) 类型转化
You can use qobject_cast<MyClass*>(instance)
on QObject derived classes and check the return value. If instance
cannot be cast to MyClass*
, the return value will be NULL
2)QObject 私有拷贝构造函数,和赋值操作
1) 类型转化
You can use qobject_cast<MyClass*>(instance)
on QObject derived classes and check the return value. If instance
cannot be cast to MyClass*
, the return value will be NULL
2)QObject 私有拷贝构造函数,和赋值操作