Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Running other C++ applications on QT?

Running other C++ applications on QT?

Scheduled Pinned Locked Moved Unsolved C++ Gurus
3 Posts 3 Posters 1.2k Views 2 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
    AAlex7
    wrote on last edited by
    #1

    How to run other C++ applications and get it to build on QT creator?

    A aha_1980A 2 Replies Last reply
    0
    • A AAlex7

      How to run other C++ applications and get it to build on QT creator?

      A Offline
      A Offline
      ambershark
      wrote on last edited by ambershark
      #2

      @AAlex7 What do you mean? You mean like a non-Qt application?

      I would just use cmake and a CMakeLists.txt, which Qt Creator can load. You could use qmake too, but then you have at least a bit of qmake involved.

      I.e.

      main.cpp

      #include <iostream>
      
      using namespace std;
      
      int main(int ac, char **av)
      {
         cout << "hello world" << endl;
         return 0;
      }
      

      CMakeLists.txt

      cmake_minimum_required(VERSION 3.8)
      project(myproject)
      
      add_executable(${PROJECT_NAME} main.cpp)
      

      Then open that CMakeLists.txt file in qt creator and press build.

      Also CMake fully supports Qt so you can add Qt to your project later if you'd like.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      2
      • A AAlex7

        How to run other C++ applications and get it to build on QT creator?

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @AAlex7 Just run File -> New File or Project to see the list of possible projects with the different supported build systems.

        Qt has to stay free or it will die.

        1 Reply Last reply
        3

        • Login

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