再编译别人的代码。其中有一处老是说没有定义,我自己定义的又不对,各位麻烦帮我看看:
QPushButton * pushbut = new QPushButton( this, "pushbut");
m_WndRect[nID] = pushbut->rect();
m_WndPoint[nID] = pushbut->pos();
这里的m_WndRect和m_WndPoint定义为什么类型的数据是对的?nID是int类型的,
在其他地方还有这样的应用:
QRect VideoRect;
ideoRect.setX(m_WndRect.x()-1 + m_WndPoint.x());
VideoRect.setY(m_WndRect.y()-1 + m_WndPoint.y());
VideoRect.setWidth(m_WndRect.width() + 3);
VideoRect.setHeight(m_WndRect.height() + 3);
如果编译要通过的话 上面的需要怎么定义呢?
谢谢了。非常急。