2

I'm looking to create a win32 application in Qt Creator - is this possible? If so, how would I go about doing it? My preference would definitely be to use native C code (and the native API) if possible.

4
  • It has absolutely no sense to use cross-platform IDE for native, win-only development. Why don't you use Express version of MS Visual Studio instead? It is also free. This would be much more comfortable and productive way in your case... Commented Feb 21, 2012 at 22:48
  • 1
    Trust me, I was going to go that route. Until I found out that their C compiler (from my experience) wasn't very good...I spent hours trying to figure out how to tweak it to what I was looking for and it still wouldn't build my code! Qt Creator builds it fine, however. Now, I need to just figure out how to link win32 apps and use their WinMain function as my entry point. Commented Feb 21, 2012 at 22:49
  • 1
    @vitakot: Well, I am doing Windows only development using Microsoft's compilers and Qt Creator as an IDE. I find that writing code is much more pleasant using Qt Creator. Commented Feb 21, 2012 at 22:55
  • Agreed. For one, you're able to actually choose what compiler to use... Commented Feb 22, 2012 at 1:25

2 Answers 2

3

Yes, you can use Qt Creator just as an IDE. It doesn't force you to use Qt or C++ only.

  1. Create project for Qt Console Application
  2. From .pro file remove "QT += core"
  3. From main.cpp remove all Qt stuff
  4. Include required WinAPI headers
  5. Write C-code only
  6. ...
  7. Profit
Sign up to request clarification or add additional context in comments.

Comments

0

If you don't want to be tied to Qt at all, Qt Creator supports CMake. Create your CMakeLists.txt then open the file as a project in Qt Creator.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.