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

[REG 5.14 -> 5.14.2, 5.15] QMetaType::registerConverter seems to be broken

    XMLWordPrintable

    Details

    • Commits:
      d911034f461859a72b45aeca0f34c34808e3f09b (qt/qtdeclarative/dev) 7a8e5cde457934f3928b8a54476eefd3b287ce47 (qt/qtdeclarative/5.15)

      Description

      Code that works with all versions from Qt [5.6.5.14] stopped working with Qt 5.15.

      The situation, where I noticed the incompatibility can be seen in one of the qskinny example: https://github.com/uwerat/qskinny. If you like to debug your code you can download and run the layouts example. The background of the "Grid Layout" page is supposed to be white.

      The problem is about the classes QskGradient/QskGradientStop:
      https://github.com/uwerat/qskinny/blob/master/src/common/QskGradient.h

      They are exposed to QML using QMetaType::registerConverter. The code can be found here: https://github.com/uwerat/qskinny/blob/master/qmlexport/QskQml.cpp

      In QskControl.h ( https://github.com/uwerat/qskinny/blob/master/src/controls/QskControl.h ) you find this:

      Q_PROPERTY( QskGradient background ... )

      and finally in https://github.com/uwerat/qskinny/blob/master/examples/layouts/layouts.qml it is used like this:

      GridBox
      {
      background
      {
      stops: [

      { position: 0.0, color: "White" }

      ,

      { position: 1.0, color: "White" }

      ,
      ]
      }

      ....
      }

        Attachments

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

          Activity

            People

            Assignee:
            fabiankosmale Fabian Kosmale
            Reporter:
            uwe Uwe Rathmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes