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. [Solved] View Qt command prompt in Windows
Forum Updated to NodeBB v4.3 + New Features

[Solved] View Qt command prompt in Windows

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 23.6k Views 1 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.
  • H Offline
    H Offline
    Hareen Laks
    wrote on 5 Jul 2013, 17:00 last edited by
    #1

    Hi,

    I'm using Qt 4.7 and when reading a book I found that there is a Qt command prompt.
    In that book it is use to run the 'designer'.

    But I don't know how to open the Qt command prompt.

    Can anybody help me?

    Thanks in advance.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on 5 Jul 2013, 17:45 last edited by
      #2

      It is not clear to me what you are referring. However, "this is found by search on this webpage.":http://qt-project.org/search?search=prompt
      You can use QProcess for some tasks you would typically perform from the command prompt.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hareen Laks
        wrote on 5 Jul 2013, 18:06 last edited by
        #3

        Thanks for the reply..

        I'm currently reading "Foundations of Qt Development" by Johan Thelin. It says

        "If you are running Windows, you can start Designer by selecting it from the Start menu or by starting the Qt command prompt and then typing designer at the console. "

        my problem is how I open the Qt command prompt?

        Thanks again...

        1 Reply Last reply
        1
        • M Offline
          M Offline
          MuldeR
          wrote on 5 Jul 2013, 18:27 last edited by
          #4

          The "Qt command prompt" is nothing but the standard Windows command prompt (aka "CMD.exe"), but with the PATH environment variable prepended by the Qt "bin" path. This means you can just enter any Qt program without a full path, because the command prompt will find it via PATH. That's all ;-)

          To get such a command prompt, just select "Qt 4.8.5 Command Prompt" from the startmenu. Either that or open a command prompt via Start -> Run -> "CMD.exe" and then call "C:\your_qt_install_path\bin\qtvars.bat".

          Equivalently you can type this inside the Windows command prompt:
          @SET "PATH=C:\your_qt_install_path\bin;%PATH%"
          SET "QTDIR=C:\your_qt_install_path"@

          My OpenSource software at: http://muldersoft.com/

          Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

          Go visit the coop: http://youtu.be/Jay...

          1 Reply Last reply
          0
          • H Offline
            H Offline
            Hareen Laks
            wrote on 6 Jul 2013, 02:59 last edited by
            #5

            @ MuldeR,

            Thank you very much for the support.

            I found "Qt 4.8.1 Command prompt" in start menu. but couldn't find the qtvars.bat in installed location.

            So I checked the properties of "Qt 4.8.1 Command prompt" and it appear as it runs qtenv2.bat. Then I run cmd.exe and set the path to qtenv2.bat.
            Now I can open the designer using command prompt.

            Thanks again...

            1 Reply Last reply
            0

            1/5

            5 Jul 2013, 17:00

            • Login

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