Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt under windows: Switch to a new Platform SDK

Qt under windows: Switch to a new Platform SDK

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.4k Views
  • 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.
  • R Offline
    R Offline
    ronM71
    wrote on 8 Mar 2012, 21:54 last edited by
    #1

    Our application needs to implement features that aren't available in Qt. For that I need my windows application to use win32.

    I implement my own win32 only class, and include:

    @#include <windows.h>
    #include <windowsx.h>
    #include <WinUser.h>@

    my problem is that it takes the include files from the default VS2005 location defined in the build environment setup inside Qt-Creator (VCINSTALLDIR). It is an older Platform SDK that doesn't support what I need.

    I have a newer Platform SDK at:

    @C:\Program Files\Microsoft SDKs\Windows\v6.1\include@

    How do I make Qt-Creator take the windows include files from there without the ugliness of having full paths in my source code's #include ?

    BTW: VS2005 and the new SDK are fine when built under visual Studio. No Compatibility issues whatsoever, But i'd rather stick to QT-Creator.

    I have so far tried the following without success:

    In Qt-Creator -> Projects -> build environment, I tried to modify the following items to reflect the path of the newer platform SDK first, ahead of the other paths:

    @FRAMEWORKSDIR
    INCLUDE
    LIB@

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stukdev
      wrote on 9 Mar 2012, 15:10 last edited by
      #2

      Have you try add in your .pro file something like this:
      @
      INCLUDEPATH += C:\Program Files\Microsoft SDKs\Windows\v6.1\include
      @

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ronM71
        wrote on 9 Mar 2012, 15:40 last edited by
        #3

        when building under Qt-Creator and windows, obviously other include paths exist, that are not defined in your *.pro file. If two identically named header files exist, one in an older SDK folder and one in a new SDK folder, and QT by default takes the old one. How do you force it to use the new one? what guarantees that what's specified in the *.pro file INCLUDEPATH statements will be taken into consideration first when looking for headers or library files?

        1 Reply Last reply
        0

        1/3

        8 Mar 2012, 21:54

        • Login

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