Please Help me How to install QT on VC++ 2008
-
Try to rename your files. From what I see you have Qt.cpp and Qt.h in your project. And don't use only Qt in your namespaces or class definitions or other defined type.
-
this is a preCode and i dont type this. its come when i use Add-in
-
So, it's not a include Qt headers error, this means VC recognize your Qt installation. I suspect something wrong in your code. Can you post the code ?
-
@
#ifndef QT_H
#define QT_H#include <QtGui/QMainWindow>
#include "ui_qt.h"class Qt : public QMainWindow
{
Q_OBJECTpublic:
Qt(QWidget *parent = 0, Qt::WFlags flags = 0);
~Qt();private:
Ui::QtClass ui;
};#endif // QT_H
@@#include "qt.h"
Qt::Qt(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags)
{
ui.setupUi(this);
}Qt::~Qt()
{}
@@#include "qt.h"
#include <QtGui/QApplication>int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Qt w;
w.show();
return a.exec();
}
@ -
some body please help me :(((((((((
-
First, please be more patiently. We all do the support here in our spare time and as volunteers. If your topic has that much answers, someone will surely come back with an answer.
As others already have mentioned, do not name your class Qt! This will conflict with the Qt namespace in the Qt libs itself. Additionally, it's good practice to not prefix your own classes with Q or Qt, as this is informally reserved for Qt's own classes.
-
sorry :( my IDE is visual stduio 2008 pro sp1. can i compile with this ?
i try to set Environment variable and download "qt-everywhere-opensource-src-4.7.4" then configure and run nmake but return error code 02 -
Yes, this works.
You can use the prebuilt binaries for VS2008 - there's no need to build them yourself. -
ok where can i download it . please send to me this link i try to find binaries for vs2008 sp1 but can not find it. i really really tnx if you send all necessary link that i must download them.
-
you can get it from http://qt.nokia.com/downloads/downloads#qt-lib
-
ok i download and install "Qt libraries 4.7.4 for Windows (VS 2008, 228 MB)" and install it to C:\Qt\4.7.4 now what i must to do ?
-
[quote author="cincirin" date="1323286429"]Try to rename your files. From what I see you have Qt.cpp and Qt.h in your project. And don't use only Qt in your namespaces or class definitions or other defined type.[/quote]
[quote author="Volker" date="1323301857"]As others already have mentioned, do not name your class Qt! This will conflict with the Qt namespace in the Qt libs itself. Additionally, it's good practice to not prefix your own classes with Q or Qt, as this is informally reserved for Qt's own classes.[/quote]
You have made these changes ? If yes, you still have errors ? If yes, please post new code with the changes.
-
tnx for all of your answer . i found one video clip in youtube how to install qt in solve my problem tnx alot