qt中新窗口ui没有显示
void MainWindow::on_student_in_clicked()
{
QWidget *student_in=new QWidget();
student_in->show();
}
没任何报错和警告
qt中新窗口ui没有显示
void MainWindow::on_student_in_clicked()
{
QWidget *student_in=new QWidget();
student_in->show();
}
没任何报错和警告
你根本没有用到student_in这个类啊,现在就是建了一个空白QWidget
难道不应该是
QWidget *student_in_widget=new student_in();
student_in_widget->show();
因为变量名不能跟类名相同,把你变量名改了一下
另外你student_in.h跟mainwindow.h互相include了,这要报错的把,把include转移到cpp去
真的写代码前先学好基础...