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

Popup: Some properties can not be bound

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15, 6.8.3
    • Quick: Controls 2
    • None
    • All

    Description

      Tested and affected properties:

      • spacing
      • topInset
      • bottomInset
      • leftInset
      • rightInset

       

      Here's a minimum example to reproduce this issue:

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtQuick.Controls 2.12
      
      Window {
          width: 320
          height: 240
          visible: true
          title: "Unbindable Properties"
      
          Dialog {
              id: dialog
              anchors.centerIn: parent
              visible: true
              closePolicy: Popup.NoAutoClose
              contentItem: Column {
                  spacing: dialog.spacing
                  Button {
                      text: "Increase Spacing: " + dialog.spacing
                      onClicked: ++dialog.spacing // not working
                  }
                  Button {
                      text: "Increase Padding: " + dialog.padding
                      onClicked: ++dialog.padding // works
                  }
              }
          }
      } 

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            gpbeta Joshua GPBeta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes