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. Environment variables for Qt
Forum Updated to NodeBB v4.3 + New Features

Environment variables for Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 6 Posters 22.6k Views 4 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.
  • Pradeep KumarP Offline
    Pradeep KumarP Offline
    Pradeep Kumar
    wrote on last edited by
    #3

    HI,

    Nope, it is not showing.
    Apart from PATH do we need to enter any other?.

    Thanks,

    Pradeep Kumar
    Qt,QML Developer

    jsulmJ 1 Reply Last reply
    0
    • Pradeep KumarP Pradeep Kumar

      HI,

      Nope, it is not showing.
      Apart from PATH do we need to enter any other?.

      Thanks,

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #4

      @Pradeep-Kumar There is no need to set any environment variables. You can do so if you want, but keep in mind that if you have more than one Qt version installed you can get in troubles.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #5

        @Pradeep-Kumar

        Nope, it is not showing.

        Then you need to add.

        Apart from PATH do we need to enter any other?.

        AFAIK None. Do you get any errors ?

        157

        jsulmJ 1 Reply Last reply
        0
        • p3c0P p3c0

          @Pradeep-Kumar

          Nope, it is not showing.

          Then you need to add.

          Apart from PATH do we need to enter any other?.

          AFAIK None. Do you get any errors ?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #6

          @p3c0 It is not required to have Qt bin directory in PATH, he does not need to do so (but he can).

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #7

            @jsulm Just in case if OP wants to launch the compiled examples by double clicking on the exe.

            157

            jsulmJ JKSHJ 2 Replies Last reply
            0
            • p3c0P p3c0

              @jsulm Just in case if OP wants to launch the compiled examples by double clicking on the exe.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by jsulm
              #8

              @p3c0 This is dangerous: if he later installs another Qt version (lets say MinGW) then I can imagine how he will ask why it is not working anymore (app built with MinGW trying to load Qt VS2013 libs, or calling the wrong qmake). I would not suggest to pollute PATH with Qt stuff.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • p3c0P Offline
                p3c0P Offline
                p3c0
                Moderators
                wrote on last edited by
                #9

                @jsulm True. Perhaps @Pradeep-Kumar could explain what is the intention behind it?

                157

                1 Reply Last reply
                0
                • Pradeep KumarP Offline
                  Pradeep KumarP Offline
                  Pradeep Kumar
                  wrote on last edited by
                  #10

                  @p3c0 i am not getting any errors.

                  @jsulm k if we have multiple Qt installed , then only do we need to provide the path?.

                  Thanks,

                  Pradeep Kumar
                  Qt,QML Developer

                  1 Reply Last reply
                  0
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    hi
                    You normally do not have to do anything
                    if you add an other version of Qt.

                    However you seems to have added
                    msvc2013_64

                    Just be be clear on this.
                    You do also have the big fat full visual studio 2013 installed also ?
                    So Creator can see the compiler ?

                    1 Reply Last reply
                    0
                    • Pradeep KumarP Offline
                      Pradeep KumarP Offline
                      Pradeep Kumar
                      wrote on last edited by
                      #12

                      yes i have installed visual studio 2013 64 bit of version 12.0 x

                      Thanks,

                      Pradeep Kumar
                      Qt,QML Developer

                      1 Reply Last reply
                      0
                      • dheerendraD Offline
                        dheerendraD Offline
                        dheerendra
                        Qt Champions 2022
                        wrote on last edited by
                        #13

                        Since you have multiple qt installled I don't suggest setting env variable if multiple different tools are using different qt versions. If your tools are using same qt version you can set env variable.

                        Dheerendra
                        @Community Service
                        Certified Qt Specialist
                        http://www.pthinks.com

                        1 Reply Last reply
                        4
                        • p3c0P p3c0

                          @jsulm Just in case if OP wants to launch the compiled examples by double clicking on the exe.

                          JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by
                          #14

                          @p3c0 said in Environment variables for Qt:

                          Just in case if OP wants to launch the compiled examples by double clicking on the exe.

                          I'd recommend running the examples through Qt Creator. That ensures the environment is set up correctly.

                          @jsulm said in Environment variables for Qt:

                          I would not suggest to pollute PATH with Qt stuff.

                          Agreed. There is no need to add Qt to the system PATH.

                          @Pradeep-Kumar said in Environment variables for Qt:

                          if we have multiple Qt installed , then only do we need to provide the path?

                          No.

                          If you have multiple Qt installed and you add one version to the PATH, then your programs will crash when you use the other version!

                          You do not need to set any environment variables at all. Just build and run your Qt applications using Qt Creator.

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          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