Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    [solved] Console here

    Brainstorm
    2
    5
    1610
    Loading More Posts
    • 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
      awoz last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • A
          awoz last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • A
            awoz last edited by

            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

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              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 :)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply Reply Quote 0
              • First post
                Last post