How to set up Qt in Dev-c++?

This is a discussion on How to set up Qt in Dev-c++? within the Windows Programming forums, part of the Platform Specific Boards category; How to set up Qt to work with Dev-C++? I have set up these environment variables so far: QTDIR = ...

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    4

    How to set up Qt in Dev-c++?

    How to set up Qt to work with Dev-C++?

    I have set up these environment variables so far:

    QTDIR = D:\Qt\4.3.4\
    INCLUDE = D:\Qt\4.3.4\include
    PATH is extended with ;D:\Qt\4.3.4\bin;D:\Dev-Cpp\bin
    QMAKESPEC = I don't know what to write here???

    So far Dev-c++ compiles programs only if include like this:

    #include <QApplication.h>

    , but .h extension is not needed in Linux and it sould not be needed in Dev-c++ to.
    Dev-c++ complains mainly that header files are not found.

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    absence of the .h is not guaranteed to work. use the .h as it is best practices since an extensionless file is of indeterminate type. Someone's had their collective heads up their arses when they thought of removing the .h extension from the standard. Next they will remove the .cpp from the source files, its just dumb and serves no purpose whatsoever.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 01-18-2008, 03:06 AM
  2. Replies: 4
    Last Post: 01-13-2008, 01:14 AM
  3. Replies: 7
    Last Post: 08-19-2007, 08:10 AM
  4. The new FAQ
    By Hammer in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 08-30-2006, 10:05 AM
  5. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21