Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80198

if an arg contains a %1 pattern that pattern will not be copied to the target string

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.13.2
    • None
    • All

    Description

      I have this code

      QString( "%1 foo %2" ).arg( Str1 ).arg( Str2 )

      Str2 contains

      "bar"

      now - by chance - Str1 contains

      "baz %1" 

      I get as output

      "baz bar foo %2", and not as I would expect

      "baz %1 foo bar"

       

      So it seems that the %1 of the Str1 value is used as pattern and that - as Str1 is processed, Str2 becomes the value for %1 and not for %2

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            u19809 wim delvaux
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes