hihi again...
tried doing it... so far I have only the .h file and it already has a weird error...
here's the connectcalcombox.h and the error below... in the whole .pro file, I have 5 files, main.cpp, mainframe.cpp, mainframe.h, connectcalcombox.h and .cpp(empty), and a Qt Ui file, named mainframe. The main, mainframe files are there by default when I create a new project.
#ifndef __CONNECTCALCOMBOX_H__
#define __CONNECTCALCOMBOX_H__
#include <QWidget>
// place your code here
class ConnectCalCombox
: public QWidget{
Q_OBJECT
public:
ConnectCalCombox();
private slots:
void dayDateChanged();
void mthDateChanged();
void yrDateChanged();
void minTimeChanged();
void hrTimeChanged();
private:
}
#endif // __CONNECTCALCOMBOX_H__
#ifndef __CONNECTCALCOMBOX_H__
#define __CONNECTCALCOMBOX_H__
#include <QWidget>
class QComboBox;
class QLabel;
// place your code here
class ConnectCalCombox : public QWidget
{
Q_OBJECT
public:
ConnectCalCombox();
private slots:
void dayDateChanged();
void mthDateChanged();
void yrDateChanged();
void minTimeChanged();
void hrTimeChanged();
private:
QLabel *dateLabel;
QLabel *dayDateLabel;
QLabel *mthDateLabel;
QLabel *yrDateLabel;
QLabel *timeLabel;
QLabel *minTimeLabel;
QLabel *hrTimeLabel;
QComboBox *dayDateComboBox;
QComboBox *mthDateComboBox;
QComboBox *yrDateComboBox;
QComboBox *hrTimeComboBox;
QComboBox *minTimeCOmboBox;
}
#endif // __CONNECTCALCOMBOX_H__
To copy to clipboard, switch view to plain text mode
../../HMIDeveloper/Qt/include/QtCore/../../src/corelib/tools/qhash.h:51: error: `QtValidLicenseForCoreModule' does not name a type
mingw32-make[1]: Leaving directory `C:/HmiProject/omg'
mingw32-make[1]: *** [build\host\connectcalcombox.o] Error 1
mingw32-make: *** [release] Error 2
the error is gone when i comment out the whole part from
"class ConnectCalCombox : public QWidget" onwards... Anyone can point out my problem? >.<
Many thanks in advance.
Bookmarks