Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
5.12.3
Description
When Diaog contains DialogButtonBox with multiple custom buttons and has no width specified or size is binded to parent size, button's text is not visible.
This is regression in 5.12.3, in 5.11.2 and 5.12.2 it works as expected.
When width is specified manualy or there is single button/standard buttons it works as expected.
Example code:
import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.5 Window { id: window visible: true width: 640 height: 480 title: qsTr("Hello World") Dialog { id: dialog // width: 320 //Works width: parent.width / 2 //Do not works modal: true closePolicy: Popup.NoAutoClose footer: DialogButtonBox { Button { text: qsTr("Close") DialogButtonBox.buttonRole: DialogButtonBox.RejectRole } Button { text: qsTr("Open") DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole } } } MouseArea { anchors.fill: parent onClicked: dialog.open() } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-78466 Buttons in DialogButtonBox loose text label under certain conditions
-
- Closed
-
- relates to
-
QTBUG-33608 Elide property of Text breaks component resizing
-
- Closed
-
-
QTBUG-83408 Text disappears with ElideRight.
-
- Closed
-