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

REGRESSION: Warning "Unable to assign QString to QByteArray"

XMLWordPrintable

    • ff0857541d5d391c7c03cce5893b41dd9b35e7fa (qtdeclarative)

      The following code produces a warning because "fragmentShader" is a QByteArray and we occasionally assign an empty string to it. 5.1 did not produce a warning.

      import QtQuick 2.0
      
      ShaderEffect {
          id: root
      
          width: 100
          height: 100
      
          Timer {
              id: timer
              onTriggered: root.tick = !root.tick
              interval: 1000
              repeat: true
              running: true;
          }
      
          property bool tick
          onTickChanged: print("tick..")
      
          property variant source: ShaderEffectSource { }
      
          fragmentShader: tick ? '' : "void main() { gl_FragColor = vec4(1, 0, 0, 1); }"
      }
      

        For Gerrit Dashboard: QTBUG-37197
        # Subject Branch Project Status CR V

            shausman Simon Hausmann
            sletta Gunnar Sletta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes