Hi..i am new to QT
the sample code mentioned below is not compiling ..please tell me the reason.
#include "QprogressBar.h"
#include <QtGui>
#include <QApplication>
#include<qprogressbar.h>
#include <qobject.h>
lass myTimer: public QTimer
{
public:
myTimer(QWidget *parent=0):QTimer(parent)
{}
public slots:
void recivetime();
};
void myTimer::recivetime()
{
}
class Progressbar: public QProgressDialog
{
public:
Progressbar(QWidget *parent=0):QProgressDialog(parent)
{
}
};
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QObject::connect(QTimer,SIGNAL(timeout()),QTimer,SLOT(recivetime()));
return a.exec();
}
it is giving problem at Connect Spot. i think it is fine to write connect at main function.