Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. how to trim whitespace in pri file?
Qt 6.11 is out! See what's new in the release blog

how to trim whitespace in pri file?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 4 Posters 1.2k Views 2 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.
  • J Offline
    J Offline
    JohnDaYe
    wrote on last edited by JohnDaYe
    #1

    how to trim whitespace in pri file?

    i can not find any way on https://doc.qt.io/qt-5/qmake-function-reference.html

    Pablo J. RoginaP 1 Reply Last reply
    0
    • J JohnDaYe

      how to trim whitespace in pri file?

      i can not find any way on https://doc.qt.io/qt-5/qmake-function-reference.html

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @JohnDaYe said in how to trim whitespace in pri file?:

      i can not find any way

      maybe because there's no need to do that?

      could you describe your use case a little bit?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

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

        Hi,

        The most simple is to use your editor for that. That's its role.

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

        J 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          The most simple is to use your editor for that. That's its role.

          J Offline
          J Offline
          JohnDaYe
          wrote on last edited by
          #4

          @SGaist i read data from system.cmd and store it in a var
          i need trim whitespace in var

          1 Reply Last reply
          0
          • Pablo J. RoginaP Pablo J. Rogina

            @JohnDaYe said in how to trim whitespace in pri file?:

            i can not find any way

            maybe because there's no need to do that?

            could you describe your use case a little bit?

            J Offline
            J Offline
            JohnDaYe
            wrote on last edited by
            #5

            @Pablo-J.-Rogina i read data from system.cmd and store it in a var
            i need trim whitespace in var

            jsulmJ 1 Reply Last reply
            0
            • J JohnDaYe

              @Pablo-J.-Rogina i read data from system.cmd and store it in a var
              i need trim whitespace in var

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

              @JohnDaYe Can you show how you read that data?
              Maybe this can help: https://stackoverflow.com/questions/369758/how-to-trim-whitespace-from-a-bash-variable

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

              1 Reply Last reply
              1

              • Login

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