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. .pro file is not getting updated with a add or remove of any source file from Projects,

.pro file is not getting updated with a add or remove of any source file from Projects,

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 5 Posters 1.0k Views
  • 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.
  • P Offline
    P Offline
    PoonamGupta
    wrote on 1 Aug 2018, 13:27 last edited by PoonamGupta 8 Jan 2018, 13:54
    #1

    Hello All,

    I am implementing Internationalization using QT tools. I am using lupdate for creating .ts file and then Qt lingusit for creating .qm file.

    As lupdate runs on .pro file. I have my own application with few different libraries project. Each application and Lib has there own .pro file.
    My problem is .pro file doesn't get updated if we add or remove some source files from an application or library. I am using Visual studio for a development. Is there any way to update .pro file without creating it again ?

    Please Let me know.

    Thanks !!!.

    J V 2 Replies Last reply 2 Aug 2018, 05:20
    1
    • P PoonamGupta
      1 Aug 2018, 13:27

      Hello All,

      I am implementing Internationalization using QT tools. I am using lupdate for creating .ts file and then Qt lingusit for creating .qm file.

      As lupdate runs on .pro file. I have my own application with few different libraries project. Each application and Lib has there own .pro file.
      My problem is .pro file doesn't get updated if we add or remove some source files from an application or library. I am using Visual studio for a development. Is there any way to update .pro file without creating it again ?

      Please Let me know.

      Thanks !!!.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 2 Aug 2018, 05:20 last edited by
      #2

      @PoonamGupta said in .pro file is not getting updated with a add or remove of any source file from Projects,:

      if we add or remove some source files from an application or library

      How do you add/remove files?

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

      P 1 Reply Last reply 2 Aug 2018, 12:48
      2
      • S Offline
        S Offline
        sanojsubran
        wrote on 2 Aug 2018, 05:29 last edited by
        #3

        Hi,

        When we convert Qt pro to a Visual Studio solution, changes made in the solution file( like adding or removing files), won't be reflected in the Qt pro file.

        The solution will be to make the relevant changes in the pro file and then generate the VS solution file from it.

        PS: I haven't worked with the recent VS versions and Qt pro files. So take this suggestion with a pinch of salt.

        Regards,
        San

        1 Reply Last reply
        1
        • A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 2 Aug 2018, 06:00 last edited by aha_1980 8 Feb 2018, 06:00
          #4

          @PoonamGupta Are you using the Qt Visual Studio Tools?

          Qt has to stay free or it will die.

          P 1 Reply Last reply 2 Aug 2018, 12:54
          0
          • P PoonamGupta
            1 Aug 2018, 13:27

            Hello All,

            I am implementing Internationalization using QT tools. I am using lupdate for creating .ts file and then Qt lingusit for creating .qm file.

            As lupdate runs on .pro file. I have my own application with few different libraries project. Each application and Lib has there own .pro file.
            My problem is .pro file doesn't get updated if we add or remove some source files from an application or library. I am using Visual studio for a development. Is there any way to update .pro file without creating it again ?

            Please Let me know.

            Thanks !!!.

            V Offline
            V Offline
            VRonin
            wrote on 2 Aug 2018, 08:02 last edited by
            #5

            @PoonamGupta said in .pro file is not getting updated with a add or remove of any source file from Projects,:

            I am using Visual studio for a development. Is there any way to update .pro file without creating it again ?

            No. they are 2 different build system unfortunately

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            1
            • J jsulm
              2 Aug 2018, 05:20

              @PoonamGupta said in .pro file is not getting updated with a add or remove of any source file from Projects,:

              if we add or remove some source files from an application or library

              How do you add/remove files?

              P Offline
              P Offline
              PoonamGupta
              wrote on 2 Aug 2018, 12:48 last edited by PoonamGupta 8 Feb 2018, 12:49
              #6

              @jsulm

              Hi jsulm, Thanks for your reply.
              I am removing or adding files using visual studio 2015, by right click on any files and then remove. Or doing new item as .h or .cpp.

              1 Reply Last reply
              0
              • A aha_1980
                2 Aug 2018, 06:00

                @PoonamGupta Are you using the Qt Visual Studio Tools?

                P Offline
                P Offline
                PoonamGupta
                wrote on 2 Aug 2018, 12:54 last edited by
                #7

                @aha_1980

                I am using VS 2015 with Qt as a add-on.
                In my project I was not using .pro file, but in order to implement internationalization, I have created .pro file using QtVS tools. So that I can run lupdate on .pro file.

                other wise I dont need .pro file as I was managing it using .vcxproj.

                P 1 Reply Last reply 2 Aug 2018, 14:58
                0
                • P PoonamGupta
                  2 Aug 2018, 12:54

                  @aha_1980

                  I am using VS 2015 with Qt as a add-on.
                  In my project I was not using .pro file, but in order to implement internationalization, I have created .pro file using QtVS tools. So that I can run lupdate on .pro file.

                  other wise I dont need .pro file as I was managing it using .vcxproj.

                  P Offline
                  P Offline
                  PoonamGupta
                  wrote on 2 Aug 2018, 14:58 last edited by
                  #8

                  @PoonamGupta

                  Re: [.pro file is not getting updated with a add or remove of any source file from Projects](, /topic/93262/pro-file-is-not-getting-updated-with-a-add-or-remove-of-any-source-file-from-projects)

                  Hi All,

                  As I mentioned I dont need .pro file for managing my project because I am using visual studio IDE, which manages project using .vcxproj.
                  I needed .pro file so that I can run lupdate and create .ts file.

                  But now I found a way to create .ts without running lupdate on .pro file. I used lupdate command directly on a project folder, as a post build event in visual studio and it eliminates the use of .pro file.

                  command : lupdate [source/extensions/dir] -ts [filename.ts]

                  Thanks to all for your reply.

                  1 Reply Last reply
                  2

                  1/8

                  1 Aug 2018, 13:27

                  • Login

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