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

Relax customisation warnings for certain properties

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • Quick: Controls 2
    • None

      Things like the contentItem and footer of Dialog should be customisable. contentItem isn't implemented by default for Dialog, and its sole purpose in Dialog is for the user to implement their own stuff. footer doesn't do anything style-specific and needs to be overridable anyway in order to do stuff like disable certain buttons:

      Ui.Dialog {
          id: settingsDialog
          title: "Settings"
          width: 500
          height: 400
          contentItem: Flickable {
              // ...
          }
          footer: DialogButtonBox {
              Button {
                  text: qsTr("OK")
                  DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
                  enabled: !imaginePathTextField.enabled || (imaginePathTextField.enabled && directoryValidator.valid)
              }
              Button {
                  text: qsTr("Cancel")
                  DialogButtonBox.buttonRole: DialogButtonBox.RejectRole
              }
          }
      }
      

      There may be other controls affected by this.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes