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

Crash on anchors : verticalCenter+left

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 3.0.1
    • Qt Creator 3.0.0-rc1
    • Quick Designer
    • None
    • Windows7 64bits, QtCreator 2.8.84(3.0.0-rc1) based on Qt5.2.0 (MSVC 2010, 32 bit)
    • b0c5380d556516dc238d0eb26fa1377cf62ed81c

    Description

      QtDesigner crash when I have an item with 2 anchors verticalCenter and left, and I click on the item in the designer.

      import QtQuick 2.0
      
          Rectangle {
              id: g_firstForm
              x: 0
              y: 0
              height:500
              width:500
              opacity: 1
      
              Rectangle {
                  id: g_backForm
                  anchors.verticalCenter: parent.verticalCenter
                  anchors.left: parent
                  anchors.leftMargin: 27
                  opacity: 1
              }
      
              Text {
                  id: g_clue
                  text: "Clue"
                  anchors.verticalCenter: parent.verticalCenter
                  anchors.horizontalCenter: parent.horizontalCenter
                  font.pixelSize: 30
                  font.family: "Arial-BoldMT"
                  font.bold: true
                  smooth: true
                  x: 238
                  y: 12
                  opacity: 1
              }
          }
      

      It doesn't crash when I replace "anchors.left.." by "x:27"

      Attachments

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

        Activity

          People

            thohartm Thomas Hartmann
            julienw Julien W
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes