-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
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.
- resulted from
-
QTBUG-96733 Prevent users from customising native styles
-
- Reported
-