指针是指向内存的地址,那为什么控件的指针对象可以直接调用函数呢? 函数不需要通过对象调用么? 如: QPushButton *bt = (QPushButton *)sender();
这里为什么可以直接通过bt调用函数呢?