Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to create "Plain C++ Project"
Forum Updated to NodeBB v4.3 + New Features

How to create "Plain C++ Project"

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 7.2k 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    I have installed Qt Creator 2.4.0 and now I'm trying to create a simple C++ project. The last step in the wizard tells me to "add a Qt version in Tools/Options..." so I can't really click Finish before that. This seems very strange since the description for Plain C++ Project says "Creates a plain C++ project using qmake, not using Qt library."

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

      This is because the project is still configured in a .pro file and qmake is needed to create makefiles out of it. The Qt version also determines which compiler/toolchain to use.

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

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        I found a way around this by creating a project using CMake and then opening it using Qt Creator. But it would be nice if Qt Creator could actually create a simple project by itself or using CMake if it's configured.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          As volker already said: Qt Creator uses qmake as the build system for its projects by default. Qmake is bundled with a Qt version. The plain C++ project thus asks about a Qt version (for its qmake), but will not link against any of the Qt libraries.

          Note that cmake support is not as good as qmake support in Qt Creator. E.g. there is no way for us to find headers when using cmake and there are other limitations as well.

          Patches to improve cmake support in Qt Creator are of course welcome.

          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