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

Crash when creating an alias from a variable

XMLWordPrintable

    • bc00353cffbfe0f74b602a16452f2e7bcd588152 (qt/qtdeclarative/5.12)

      Maybe this is totally a wrong thing to do but this code will crash DS when run in the live preview.

      import QtQuick 2.12
      import QtQuick.Studio.Components 1.0
      import QtQuick.Controls 2.3
      import QtQuick.Layouts 1.0
      import QtQuick.Dialogs 1.3
      
      
      Item {
          id: myItem
      
          property alias myColorDialogName: myItem.myColorDialogName
          property var colourDialogName: colorDialog1
      
      
      
      
          ColorDialog {
              id: colorDialog
              title: "Please choose a color"
      
              onAccepted: {
                  console.log("You chose: " + colorDialog.color)
                  chosenColour.color = colorDialog.color
              }
      
              onRejected: {
                  console.log("Canceled")
              }
      
              Component.onCompleted: {
                  visible = true
              }
          }
      }
      
      
      

      Crash log attached

        For Gerrit Dashboard: QTBUG-74867
        # Subject Branch Project Status CR V

            ulherman Ulf Hermann
            brook_cronin_qt Brook Cronin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes