文件a.cpp在DEBUG的时候报错,下面是a.cpp的。然后 main 的就不列出了放不下。求高手解答。谢谢了
#include "widget.h"
Widget:: Widget(QWidget *parent)
: QWidget(parent)
{
//setMinimumSize( 200, 120 );
//setMaximumSize( 200, 120 );
// QPushButton *quit = new QPushButton( "Quit",this );
// quit->setGeometry( 62, 40, 75, 30 );
//quit->setFont( QFont( "Times", 18, QFont::Bold ) );
// connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
ui.setupUi(this); //有错误的一行
}
Widget::~Widget()
{
}
下面是 "widget.h"
#ifndef WIDGET_H
#define WIDGET_H
#include <QtGui/QWidget>
#include <qapplication.h>
#include <qpushbutton.h>
#include <qfont.h>
#include "ui.h"
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = 0);
~Widget();
private:
Ui::m_window ui;
};
#endif // WIDGET_H
下面是 "ui.h"
/********************************************************************************
** Form generated from reading UI file 'gkxt2uW4872.ui'
**
** Created: Fri Dec 31 12:17:38 2010
** by: Qt User Interface Compiler version 4.7.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef GKXT2UW4872_H
#define GKXT2UW4872_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QMainWindow>
#include <QtGui/QMenu>
#include <QtGui/QMenuBar>
#include <QtGui/QPushButton>
#include <QtGui/QRadioButton>
#include <QtGui/QScrollArea>
#include <QtGui/QScrollBar>
#include <QtGui/QStatusBar>
#include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
class Ui_m_window
{
public:
QAction *menu_start;
QAction *menu_exit;
QAction *action_3;
QAction *action_5;
QAction *action_6;
QAction *menu_sysset;
QAction *menu_queset;
QAction *menu_login;
QAction *menu_bbs;
QAction *menu_learn;
QAction *action_12;
QAction *action_14;
QWidget *centralWidget;
QScrollArea *scrollArea;
QWidget *scrollAreaWidgetContents;