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

QStringLiteral conflicts between different plugins

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.6.0, 5.6.1, 5.7.0
    • None
    • Ubuntu 14.04 (i686) and Ubuntu 16.06 (x64)

    Description

      How to reproduce. Create two plugins with similar classes (with same names and functions) and different QStringLiteral strings. After creating objects all strings in the second object will be replaced by strings from first. Attached example demonstrates this issue. It outputs:
      "First Plugin"
      "First Plugin"
      but should output:
      "First Plugin"
      "Second Plugin"

      Adding CONFIG -= c+11 to all .pro files resolves this issue but disables c+14 support. Unfortunately, uic generates code with QStringLiteral usage. So, I unable to resolve this issue by avoiding QStringLiteral in my code.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            trialuser02 Ilya Kotov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes