Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.11, 5.15.2, 5.15.6, 6.2.0
-
89b8beeced (qt/qtdeclarative/dev) 89b8beeced (qt/tqtc-qtdeclarative/dev) aa67903259 (qt/qtdeclarative/6.3) aa67903259 (qt/tqtc-qtdeclarative/6.3) aa67903259 (qt/tqtc-qtdeclarative/6.3.1)
Description
To reproduce, drag a slider (or any control that accepts mouse input, like a Button) in a dialog and then finish the drag by releasing outside of the dialog (happens often when quickly dragging a slider to its maximum value).
Even though the close policy is Popup.CloseOnReleaseOutside, I wouldn't expect the dialog to close because of it in this situation.
QML from the attached project:
main.qml
import QtQuick 2.8 import QtQuick.Controls 2.1 import QtQuick.Layouts 1.3 ApplicationWindow { id: window objectName: "window" width: 800 height: 800 visible: true Button { id: button text: "Open" onClicked: dialog.open() } Dialog { id: dialog objectName: "texturedFillSettingsDialog" title: qsTr("Textured Fill settings") // Doesn't work if these are specified x: Math.round(parent.width - width) / 2 y: Math.round(parent.height - height) / 2 modal: true dim: false focus: true closePolicy: Popup.CloseOnEscape | Popup.CloseOnReleaseOutside contentItem: RangeSlider { id: root from: -1 to: 1 first.value: 0.25 second.value: 0.75 objectName: "hueVarianceSlider" Layout.fillWidth: true } } }
Attachments
For Gerrit Dashboard: QTBUG-67512 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
356773,4 | WIP: Popup: don't close when releasing a drag outside of the popup | dev | qt/qtquickcontrols2 | Status: DEFERRED | -2 | 0 |
409330,9 | Popup: don't close when releasing a drag outside of the popup | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
409937,2 | Popup: don't close when releasing a drag outside of the popup | 6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
409954,2 | Popup: don't close when releasing a drag outside of the popup | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |