#ifndef CALENDARTIME_H
#define CALENDARTIME_H
#include <QWidget>
#include "ui_calendar-time.h"
class CT
: public QWidget,
public Ui
::Calendar-Time{
Q_OBJECT
public:
CT(CT *parent = 0);
~CT();
};
#endif // CALENDARTIME_H
#include <QtGui/QApplication>
#include "calendar-time.h"
int main(int argc, char *argv[])
{
CT w;
CT.show();
return a.exec();
}
#ifndef CALENDARTIME_H
#define CALENDARTIME_H
#include <QWidget>
#include "ui_calendar-time.h"
class CT : public QWidget, public Ui::Calendar-Time
{
Q_OBJECT
public:
CT(CT *parent = 0);
~CT();
void setColumnRange(QChar first, QChar last);
};
#endif // CALENDARTIME_H
#include <QtGui/QApplication>
#include "calendar-time.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
CT w;
CT.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
These are the errors:
calendar-time.h:8: error: expected class-name before '-' token
calendar-time.h:8: error: expected '{' before '-' token
calendar-time.h:8: error: expected unqualified-id before '-' token
mingw32-make[1]: *** [debug/main.o] Error 1
I tried a qmake it doesn't help. I seem to always get this problem. :confused
[/CODE]
Bookmarks