新手
#include <QtGui/QApplication>
#include "widget.h"
#include"mydlg.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
myDlg my1;
if(my1.exec()==QDialog::Accepted)
{
Widget w;
w.show();
}
return a.exec();
}
错误:
“myDlg” was not declared in this scope
expectde";"before "my1"
"my1"was not declared in this scope
怎么改。帮忙写出来。谢谢