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

Designer is adding redundant position information

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • Qt Creator 3.1.0-rc1
    • Quick Designer
    • None
    • Windows 7 64 bit

    Description

      1. Create a new Qt Quick Application project.
      2. Open the project's QML file.
        It contains:
            Text {
                text: qsTr("Hello World")
                anchors.centerIn: parent
            }
        
      3. Switch to Design mode.
      4. Move the Text item using drag and drop.
      5. Switch back to Edit mode.
        The QML file now contains something like:
            Text {
                x: 236
                y: 141
                text: qsTr("Hello World")
                anchors.verticalCenterOffset: -92
                anchors.horizontalCenterOffset: -57
                anchors.centerIn: parent
            }
        

        What's the point of having x and y properties when the position is determined by the anchors properties?

      Either use x/y or the anchors, but don't use both.

      Attachments

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

        Activity

          People

            bubke Marco Bubke
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes