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

Bad input parameters for Qt.rgba() cause crash

    XMLWordPrintable

Details

    Description

      See attached example files.

      qmlscene rgba.qml just causes crash, and the error report is also incorrect (line number is wrong).

      rgbatest.js:41: Uncaught SyntaxError: Unexpected number
      Segmentation fault
      

      If write Qt.rgba inside .qml directly, the error report is right, but still cause crash.

      import QtQuick 2.0
      Rectangle {
        id:rect
        color:Qt.rgba(1, 2 3, 3, 1);
      }
      
      rgba.qml:4:22: Expected token `)' 
             color:Qt.rgba(1, 2 3, 3, 1); 
                                ^
      

      Attachments

        1. rgba.qml
          0.1 kB
        2. rgbatest.js
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            charles Charles Yin (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes