自己添加ui文件后,使用 ui->setupUi(this);后面的setupUi 没有自动提示,,调试后报错
错误:invalid use of incomplete type 'struct Ui::sendfile'
原因是ui_sendfile_h文件中声明的class和sendfile.h文件中的class名字不一样。需要改成一样的,而且要注意大小写。
默认声明的使大写 Sendfile,自己写的使小写sendfile
自己添加ui文件后,使用 ui->setupUi(this);后面的setupUi 没有自动提示,,调试后报错
错误:invalid use of incomplete type 'struct Ui::sendfile'
原因是ui_sendfile_h文件中声明的class和sendfile.h文件中的class名字不一样。需要改成一样的,而且要注意大小写。
默认声明的使大写 Sendfile,自己写的使小写sendfile