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

REGRESSION: Warning "Unable to assign QString to QByteArray"

    XMLWordPrintable

Details

    • ff0857541d5d391c7c03cce5893b41dd9b35e7fa (qtdeclarative)

    Description

      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); }"
      }
      

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes