[solved] Console here



  • Hello,

    Unless this has been done elsewhere, how would one go about adding a "Console here" feature to the Qt Creator File menu dropdown?

    The general idea is to open a console or file manager at the currently opened project. One could then see all the projects files and executable. So rather than hunting around for projects directories, you "Console here" to find and run your command line executable/program.


  • Lifetime Qt Champion

    Hi,

    Do you mean the contextual menu when you're on a file ? If so, it's already available (at least on OS X) or the build directory ?



  • Yes, but the contextual menu for the project name. However, your file context menu suggestion should do nicely if I could only set the project's build output directory. So I tried setting the Tools- Options- Build & Run- General tab values; use Current Directory, Default build directory = BuildOutput

    After doing a project rebuild, my Default build directory setting is ignored and output goes to ../build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}

    Am I doing something wrong?



  • My bad. I now see that the Default build directory setting is applied only when configuring a project. By first removing the project.pro.user file and choosing configure after opening project.pro, my build output is set as desired.

    And I also see that the build output MUST be at the same directory level as the project directory, to satisfy Qmake and to avoid "Qmake does not support build directories below the source directory."

    My original "console here" inquiry can now be solved via "Show in explorer" the project file, then move up one level and "Run console" to see and run project.exe at the command line.

    Thanks for your help.

    -another newbee


  • Lifetime Qt Champion

    The shadow build directory can be set anywhere you want but not in the sources (that would defeat the purpose)

    You're welcome !

    Since it's all good now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.