Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    What is "target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mdi" in .pro

    General and Desktop
    3
    5
    3663
    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.
    • H
      harveyab last edited by

      Why are these last three lines in my project .pro file:

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mdi
      INSTALLS += target
      

      The project started from the mdi example, and I copied it to my own directory.
      Can I (Should I) simply delete these three lines (or comment then out)?
      Do they do anything?
      Should target.path or INSTALLS be set to something else?
      Thanks

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

        Hi,

        These lines is for telling the build system where to install these when calling make install after a build.

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

        H 1 Reply Last reply Reply Quote 0
        • H
          harveyab @SGaist last edited by

          @SGaist So after I copy an example to my own location, I should edit these? or delete them?
          I don't want any connection to the original location of the example. Right?

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

            If you don't plan to call make install then you can just ignore them

            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 1
            • eyllanesc
              eyllanesc @harveyab last edited by

              @harveyab What that command simply does is copy the executable to a specific folder, so if your goal is not to copy it to that folder then delete that pair of commands.

              If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

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