.ui+main.cpp  ----qmake+make没有问题...
但是uic xx.ui > xx.h
    uic -i xx.h xx.ui -o xx.cpp
然后:xx.h+xx.cpp+main.cpp-------qmake -project + qmake + make   =   form1.h:18: 错误:multiple types in one declaration????
看了好久实在是不知道什么原因...
请教
我的xx.h:
#ifndef FORM1_H
#define FORM1_H
#include <qvariant.h>
#include <qdialog.h>
#include "Config.h"
#include "qstring.h"
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QLineEdit;
class QLabel;
class QPushButton;
class QComboBox;
class Form1 : public QDialog
{
    Q_OBJECT
public:
    Form1( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
    ~Form1();
    QLineEdit* password;
    QLabel* textLabel1;
    QPushButton* ok;
    QPushButton* quit;
    QLabel* textLabel2;
    QComboBox* username;
    Config cfg;
    QString str;
protected:
protected slots:
    virtual void languageChange();
};
#endif // FORM1_H
[ 此贴被XChinux在2005-10-21 23:48重新编辑 ]