A major part of the problem as i understand is not configuring the library paths properly....
#include <QApplication>
#include <QFont>
#include <QPushButton>
/*
// The Libraries wont open..
#include <QReadWriteLock>
#include <QWaitCondition>
#include <QStringList> // also for QString & QList
#include <QThread>
#include <QMutex>
#include <QDate>
#include <QSize>
#include <QPair>
#include <QMap>
#include <QSet>
*/
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QPushButton quit("Quit");
quit.resize(75, 30);
quit.setFont(QFont("Times", 18, QFont::Bold));
QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));
quit.show();
return app.exec();
}
This program runs when there are only the default 3 libraries.
the libraries are present in
C:\Qt\2010.05\qt\include\QtCore
C:\Qt\2010.05\qt\include\Qt
C:\Qt\2010.05\qt\include\QtGui
How do i set these libraries in the project....
some how enabling the "Full command line" option in compiler logging seems to have .. worked a bit.
the build log is as below
Build started on: 23-02-2011 at 15:27.44
Build ended on: 23-02-2011 at 15:27.46
-------------- Build: Debug in qt_test ---------------
mingw32-g++.exe -Wall -g
-IC:\Qt\2010.05\qt\include
-IC:\Qt\2010.05\qt\include\QtGui
-IC:\Qt\2010.05\qt\include\QtCore
-IC:\Qt\2010.05\qt\include\Qt
-IC:\Qt\2010.05\qt\include\QtCore
-IC:\Qt\2010.05\qt\include\Qt
-IC:\Qt\2010.05\qt\include\QtGui
-c D:\Aditya\CodeBlocks\qt_test\main.cpp -o obj\Debug\main.o mingw32-g++.exe
-LC:\Qt\2010.05\qt\lib -o bin\Debug\qt_test.exe obj\Debug\main.o -lQtCore4 -lQtGui4
Output size is 180.75 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings
But i get a couple of redirection in between when i try to open a header file. in the sense it wont open directly but opens 2 in between files to finally get to the header file..
a file QThread opens up containing
and i click qthread.h again here i get a file qthread.h opening up
containing
#include "../../src/corelib/thread/qthread.h"
finally clicking qthread.h here opens up the required header file
#ifndef QTHREAD_H
#define QTHREAD_H
#include <QtCore/qobject.h>
#include <limits.h>
QT_BEGIN_HEADER
// .......
(http://www.fileden.com/files/2009/12/29/2706571/My Documents/qthread.JPG)