刚开始学QT,在fedora10下装个一个SDK版的QT4.7。做的第一个代码就无法编译通过,具体问题是在.ui文件下添加的控件编译时说无法找到,提示说 class Ui::floatcal has no member named 'lineEdit_X',class Ui::floatcal has no member named 'lineEdit_Y'等等(lineEdit_X和lineEdit_Y是floatcal中的两个lineEdit控件)。问下各位高手,这些控件变量应该是自动包含在floatcal类的私有变量private: Ui::floatcal *ui里的吧,还是说要手动添加的?