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

Values for default color properties of selected QML items aren't correct and get modified if set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 3.0.0-beta
    • Quick Designer
    • Qt5.2, QtCreator 3.0
    • 2436bc0b2c57b6b934c43259a66a286cf8b0088f

    Description

      Steps to reproduce:

      • open/create Qt Quick 2 Application (used the template from New Project wizard)
      • switch to Designer
      • select a QML item with color property and check
      • get back to Edit mode, add the color property to one of the items and set a value (I've set color: "red" for the Text element)
      • switch back to Designer - if color of the Text is displayed correctly switch to Rectangle inside Navigator and back to Text (maybe necessary to perform this twice)

      Current behavior:

      • all default color values are set to #000000 no matter what the correct value is
      • some set colors are displayed wrong ("green" is displayed inside Designer as "#038000" if you switch back to Edit it's displayed as "#028000", "lightblue" is "#add8e6" (Designer) and "#add9e6" (Edit))
      • some colors get modified by the Designer (the mentioned "red" was changed by Designer to "#808080", "darkred" to "#454545")
      • setting a color with Designer and switching afterwards between the QML items and back to the modified item changes the color value slightly to a different value (in most cases the modified value now stays when switching again between the items and back)

      Attachments

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

        Activity

          People

            thohartm Thomas Hartmann
            cstenger Christian Stenger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes