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. Can I use Qt Creator IDE for C++ programming?
QtWS25 Last Chance

Can I use Qt Creator IDE for C++ programming?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 3.1k 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.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on last edited by
    #1

    Hi guys,

    I don't have a C++ compiler (say, VS) installed on my Windows machine, but Qt Creator 4.2.1 (Community). My question is that, can I use it instead of, for example, VS compiler?

    I VS, if I write a code like the following:

    #include <std_lib_facilities.h>
    int main()
    {
            cout <<"OK\n";
    	keep_window_open();
    	return 0;
    }
    

    It would show the massage OK and would keep the window for a user response.
    Can I have these facilities using Ct Creator IDE?

    VRoninV 1 Reply Last reply
    0
    • tomyT tomy

      Hi guys,

      I don't have a C++ compiler (say, VS) installed on my Windows machine, but Qt Creator 4.2.1 (Community). My question is that, can I use it instead of, for example, VS compiler?

      I VS, if I write a code like the following:

      #include <std_lib_facilities.h>
      int main()
      {
              cout <<"OK\n";
      	keep_window_open();
      	return 0;
      }
      

      It would show the massage OK and would keep the window for a user response.
      Can I have these facilities using Ct Creator IDE?

      VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #2

      @tomy said in Can I use Qt Creator IDE for C++ programming?:

      Can I have these facilities using Ct Creator IDE?

      The IDE part is the important one. Qt Creator is just an IDE, it doesn't integrate a compiler as Visual Studio does. You'll need an external compiler to actually build and debug the program.

      • On windows, Qt installation gives you the option to also install MinGW compiler or you can use the MSVC build tools
      • On linux most distribution come with gcc already installed
      • Unsure on Mac, the "standard" compiler is called llvm but I never had enough money for a Mac computer so I'm unsure how to install it

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      J.HilkJ 1 Reply Last reply
      2
      • tomyT Offline
        tomyT Offline
        tomy
        wrote on last edited by tomy
        #3

        Thanks.
        I have the MinGW compiler, I think. How to launch and use it, for example, for that simple code above?
        PS: I use Windows.

        VRoninV 1 Reply Last reply
        0
        • VRoninV VRonin

          @tomy said in Can I use Qt Creator IDE for C++ programming?:

          Can I have these facilities using Ct Creator IDE?

          The IDE part is the important one. Qt Creator is just an IDE, it doesn't integrate a compiler as Visual Studio does. You'll need an external compiler to actually build and debug the program.

          • On windows, Qt installation gives you the option to also install MinGW compiler or you can use the MSVC build tools
          • On linux most distribution come with gcc already installed
          • Unsure on Mac, the "standard" compiler is called llvm but I never had enough money for a Mac computer so I'm unsure how to install it
          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @VRonin said in Can I use Qt Creator IDE for C++ programming?:

          • Unsure on Mac, the "standard" compiler is called llvm but I never had enough money for a Mac computer so I'm unsure how to install it

          the recommanded way is to install Xcode, it's part of the macOS-Essentials. You can find it in the App store for free.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          2
          • tomyT tomy

            Thanks.
            I have the MinGW compiler, I think. How to launch and use it, for example, for that simple code above?
            PS: I use Windows.

            VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by VRonin
            #5

            @tomy said in Can I use Qt Creator IDE for C++ programming?:

            I have the MinGW compiler, I think.

            If you do and Qt Creator can find it you'll see it in Tools > Options > Build & Run > Kits under auto detect. if that's the case then you are ready to roll.

            Take a look at http://doc.qt.io/qtcreator/creator-getting-started.html

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            2

            • Login

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