Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. lupdate_only add my qml files on the c++ sources directory

lupdate_only add my qml files on the c++ sources directory

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 3 Posters 1.2k Views 3 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.
  • D Offline
    D Offline
    DavidM29
    wrote on last edited by DavidM29
    #1

    Hello,

    I do have implement the translation via lupdate and since that moment it has added the qml file in my C++ sources directory in QT Creator.
    Is there a way to avoid this behavior ?
    Here is the lupdate I do have in my .pro file :

    lupdate_only{
    SOURCES = *.qml \
              qml/*.qml \
              qml/components/*.qml \
              qml/options/*.qml \
              qml/pages/*.qml
    }
    
    raven-worxR 1 Reply Last reply
    0
    • D DavidM29

      Hello,

      I do have implement the translation via lupdate and since that moment it has added the qml file in my C++ sources directory in QT Creator.
      Is there a way to avoid this behavior ?
      Here is the lupdate I do have in my .pro file :

      lupdate_only{
      SOURCES = *.qml \
                qml/*.qml \
                qml/components/*.qml \
                qml/options/*.qml \
                qml/pages/*.qml
      }
      
      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @DavidM29 said in lupdate_only add my qml files on the c++ sources directory:

      since that moment it has added the qml file in my C++ sources directory in QT Creator.

      unfortunately QtCreator isn't very respectful against scopes in the .pro file

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      D 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @DavidM29 said in lupdate_only add my qml files on the c++ sources directory:

        since that moment it has added the qml file in my C++ sources directory in QT Creator.

        unfortunately QtCreator isn't very respectful against scopes in the .pro file

        D Offline
        D Offline
        DavidM29
        wrote on last edited by DavidM29
        #3

        @raven-worx
        That is sad !
        So if I understand there is no solutions ?

        raven-worxR 1 Reply Last reply
        0
        • D DavidM29

          @raven-worx
          That is sad !
          So if I understand there is no solutions ?

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @DavidM29
          at least not that i am aware of

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          D 1 Reply Last reply
          0
          • raven-worxR raven-worx

            @DavidM29
            at least not that i am aware of

            D Offline
            D Offline
            DavidM29
            wrote on last edited by
            #5

            @raven-worx
            Thank you for that information !

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              It's not really a question of being respectful or not of the scopes.

              What would happen if Qt Creator started to only show you the files for one specific platform or configure option ? You would be starting to have a hard time managing your files if you they would appear/disappear because of that.

              Not that I do understand what you want, however it should be a specific option for that.

              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
              0

              • Login

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