|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
>make mingw32-make -f Makefile.Release mingw32-make[1]: Entering directory `D:/work/ph/software/R data file constructio n' g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/in clude/QtGui" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2. 1/include/ActiveQt" -I"release" -I"." -I"c:\Qt\4.2.1\mkspecs\win32-g++" -o relea se\datafileconstructor.o datafileconstructor.cpp datafileconstructor.cpp: In constructor `datafileconstructor::datafileconstructo r(QWidget*)': datafileconstructor.cpp:7: error: no matching function for call to `Ui::datafile constructor::setupUi(datafileconstructor* const)' ui_datafileconstructor.h:38: note: candidates are: void Ui_datafileconstructor:: setupUi(QDialog*) mingw32-make[1]: *** [release\datafileconstructor.o] Error 1 mingw32-make[1]: Leaving directory `D:/work/ph/software/R data file construction ' mingw32-make: *** [release] Error 2 |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
>make
mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `D:/work/ph/software/R data file constructio
n'
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/in
clude/QtGui" -I"C:/Qt/4.2.1/include/QtGui" -I"C:/Qt/4.2.1/include" -I"C:/Qt/4.2.
1/include/ActiveQt" -I"release" -I"." -I"c:\Qt\4.2.1\mkspecs\win32-g++" -o relea
se\main.o main.cpp
In file included from main.cpp:2:
datafileconstructor.h:8: error: expected class-name before '{' token
main.cpp: In function `int qMain(int, char**)':
main.cpp:8: error: 'class datafileconstructor' has no member named 'show'
mingw32-make[1]: *** [release\main.o] Error 1
mingw32-make[1]: Leaving directory `D:/work/ph/software/R data file construction
'
mingw32-make: *** [release] Error 2
|
|
|
Source code |
1 2 3 4 5 6 |
SOURCES += main.cpp SOURCES += datafileconstructor.cpp HEADERS += datafileconstructor.h FORMS += datafileconstructor.ui CONFIG += release TEMPLATE = app |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
#include <QtGui>
#include "datafileconstructor.h"
datafileconstructor::datafileconstructor(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
}
void datafileconstructor::on_stations_valueChanged(int value)
{
}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#ifndef DATAFILECONSTRUCTOR_H
#define DATAFILECONSTRUCTOR_H
#include "ui_datafileconstructor.h"
class datafileconstructor : public QMainWindow
{
Q_OBJECT
public:
datafileconstructor(QWidget *parent = 0);
private slots:
void on_stations_valueChanged(int value);
private:
Ui::datafileconstructor ui;
};
#endif
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 |
#include <QApplication>
#include "datafileconstructor.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
datafileconstructor myconstructor;
myconstructor.show();
return app.exec();
}
|
|
|
Source code |
1 2 3 4 |
datafileconstructor.cpp:7: error: no matching function for call to `Ui::datafile constructor::setupUi(datafileconstructor* const)' ui_datafileconstructor.h:38: note: candidates are: void Ui_datafileconstructor:: setupUi(QDialog*) |
This post has been edited 1 times, last edit by "agallers11" (Nov 8th 2006, 6:22pm)