Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Please Help me How to install QT on VC++ 2008
Forum Updated to NodeBB v4.3 + New Features

Please Help me How to install QT on VC++ 2008

Scheduled Pinned Locked Moved Installation and Deployment
25 Posts 4 Posters 10.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahura_24
    wrote on last edited by
    #14

    this is a preCode and i dont type this. its come when i use Add-in

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #15

      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 ?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ahura_24
        wrote on last edited by
        #16

        @
        #ifndef QT_H
        #define QT_H

        #include <QtGui/QMainWindow>
        #include "ui_qt.h"

        class Qt : public QMainWindow
        {
        Q_OBJECT

        public:
        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();
        }
        @

        1 Reply Last reply
        0
        • A Offline
          A Offline
          ahura_24
          wrote on last edited by
          #17

          some body please help me :(((((((((

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #18

            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.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ahura_24
              wrote on last edited by
              #19

              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

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #20

                Yes, this works.
                You can use the prebuilt binaries for VS2008 - there's no need to build them yourself.

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  ahura_24
                  wrote on last edited by
                  #21

                  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.

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #22

                    you can get it from http://qt.nokia.com/downloads/downloads#qt-lib

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      ahura_24
                      wrote on last edited by
                      #23

                      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 ?

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        cincirin
                        wrote on last edited by
                        #24

                        [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.

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          ahura_24
                          wrote on last edited by
                          #25

                          tnx for all of your answer . i found one video clip in youtube how to install qt in solve my problem tnx alot

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved