diff --git a/src/qtquick/qml/private/MessageBoxSheet.qml b/src/qtquick/qml/private/MessageBoxSheet.qml --- a/src/qtquick/qml/private/MessageBoxSheet.qml +++ b/src/qtquick/qml/private/MessageBoxSheet.qml @@ -36,13 +36,19 @@ QtLayouts.Layout.fillWidth: true elide: Text.ElideRight } + // This is a TextEdit rather than a label, because the QQC Label control + // does not support text selection (and it's very useful to be able to + // select error texts for searchy purposes) contentItem: TextEdit { id: messageLabel QtLayouts.Layout.preferredWidth: Kirigami.Units.gridUnit * 10 QtLayouts.Layout.margins: Kirigami.Units.largeSpacing wrapMode: Text.Wrap readOnly: true selectByMouse: true + color: Kirigami.Theme.textColor + selectedTextColor: Kirigami.Theme.highlightedTextColor + selectionColor: Kirigami.Theme.highlightColor } footer: QtLayouts.RowLayout { Item { QtLayouts.Layout.fillWidth: true }