Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Start Debugging greyed out



  • Hi I just downloaded Q Creator and attempted to create a new project as follows. But I get greyout out Build and Debug options. What am I doing wrong? Thanks

    02c28397-c165-4ffa-9ed5-1242a517fe5d-image.png

    c75f0bb3-9167-4bac-8b10-2aceebdc06fe-image.png



  • @Chris-Choir

    Can you check if debugger was set correctly? https://doc.qt.io/qtcreator/creator-debuggers.html


  • Lifetime Qt Champion

    Hi
    With the visual studio compiler did you install the "debugging tools" ?`
    https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-tools



  • @mrjj Hi Thanks for the reply I didn't install Visual Studio I used the QT Creator installer and it installed the following components. I am able to compile a couple of the same files. like the Bargraph samples

    59f9a02b-925a-4304-91a1-950f74df4b30-image.png

    Thanks


  • Lifetime Qt Champion

    @Chris-Choir
    But did you install the visual studio compiler ?
    Its not included in Qt installer. Only mingw is.
    So maybe you had it installed ?
    (since it sounds like you can compile)

    However, when using Creator as editor, one has to install the standalone VS debugger as the normal one
    is build into the VS IDE so its an extra install to get a debugger.



  • @Ratzz Thanks Appreciate it
    Here is what I have for Kits/Compilers/Debuggers that were installed automatically:

    8c8a4de7-1dbc-4eef-9862-72ee0dbc0b15-image.png



  • @mrjj Hi I definitely didn't install a VS/VC compiler manually but I can compile some projects but not all . Sometimes when I load sample projects it does not allow me to select the MSVC (see 2nd pic) other times it does(first pic). I was under the impression QT was just using GCC with the visual studio runtimes. I definitely do not have visual studio on my computer. there is a QT sample project called "bars.pro" that I can load and compile and edit. Thanks

    note: the message board here makes me wait 100 minutes between posts

    Lets me debug with MSVC
    66d8d9a1-53ef-4ff4-a09c-8d62239116fc-image.png

    MSVC greyedout
    630122e4-1ae8-449b-b926-4781a92f79cd-image.png
    I was able to edit and compile
    e0fed4a8-47e5-4c4c-a5d8-b71d1020ba49-image.png



  • @mrjj

    Hi, According to the QT Debuggers tab it looks like it is installed but would I be able to compile a project? like have am sometimes able to do?

    So do I need visual studio visual C to use QT?
    thanks

    0bd6d826-cd89-4696-93ab-954b4789782c-image.png


  • Lifetime Qt Champion

    @Chris-Choir
    Hi
    that is only the debugger so it cant compile anything.

    For the visual studio Qt, you need to install the VS compiler your self.
    It cannot be used with mingw as they dont understand each other.
    That is the reason the kit is grey out. No compiler for it.

    If you didnt plan to use the visual studio Qt, why not just uninstall it and use the mingw only?
    It comes with debugger and compiler. You are not missing out on anything.



  • @mrjj said in Start Debugging greyed out:

    e visual studio Qt, you need to install the VS compiler your self.
    It cannot be used with mingw as they dont understand each other.
    That is the reason the kit is grey out. No compiler for it.
    If you didnt plan to use the visual studio Qt, why not just uninstall it and use the mingw only?
    It comes with debugger and compiler. You are not missing out on anything.

    Ok thanks appreciate it. So then my question is, if I had visual studio why would I need QT? I think that is why I am so confused here. If I had visual studio I would just develop apps with MFC or Win32 if I wanted high performance win apps. I was under the impression QT was like Visual studio and MFC except cross platform. I guess I misunderstood its capability. I thought it was a compiler as well as an MVC/Observer style framework.

    Thanks for your help guys, I guess my problem is solved.


  • Lifetime Qt Champion

    @Chris-Choir
    Hi
    Qt is a c++ (GUI) framework. ( not a compiler)
    It can work with most compilers including visual studio.

    The prebuild ones you download of Qt requires the same compiler as it was built with.
    So that is why it says visual studio in the name and then need the visual studio compiler.
    it cannot be used with another compiler as they are not compatible.

    So unless you want to use the VS compiler.
    Then use the mingw Qt comes included with debugger and all.
    Complete setup out of the box.

    And just so its said Qt is waaaaaay nicer than pure win32 or MFC to make apps with. :)


Log in to reply