Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-10114

When setting the alignment for a custom component which is using an alias for the text alignment property gets set with the wrong value

XMLWordPrintable

    • a6d6db3397b82dc9fca5517c3ad2595f00c89f90, 7f09973ca219e4db9a9f320cb31f3294e6a2e80e, 02c484a343949ec79adaf80c72ed4f3452052237

      When setting the alignment for a custom component which is using an alias for the text alignment property gets set with the wrong value. If the buttons in the qmldesigner are used to change the alignment then instead of it being scoped correctly it just has "AlignHCenter" for the property in the qml editor.

      This means that the qmldesigner will then give a warning when switching back because the property value is not correct.

      Also, when setting the alignment via the buttons, the following asserts come up:

      ASSERT: "equals(modelProperty.value(), qmlVariantValue)" in file designercore\model\texttomodelmerger.cpp, line 1401
      ASSERT: "0" in file designercore\model\texttomodelmerger.cpp, line 1402
      

      Attached is an example that has a custom component as a dll and also the qml file for the properties for use in Qt Creator. This requires everything to be Qt 4.8.x based.

        For Gerrit Dashboard: QTCREATORBUG-10114
        # Subject Branch Project Status CR V

            thohartm Thomas Hartmann
            andysh Andy Shaw
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes