Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.0
-
None
-
MSVC2017 5.8.4, Qt 5.12, Windows 10 x64
Description
If I have a dialog with a DialogButtonBox and the width of one control is set by the other width then the button does not render.
Using the below code in a default project with 'quickcontrols2' added to the QT property in the .pro file.
import QtQuick 2.12 import QtQuick.Controls 2.4 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") onVisibleChanged: testDialog_.open() Dialog { id:testDialog_ width: 600 height: 380 title: qsTr("Broken") footer: DialogButtonBox { Button { text: "OK" width: cancelButton_.width DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole } Button { id: cancelButton_ text: "Cancel" DialogButtonBox.buttonRole: DialogButtonBox.RejectRole } } } }
On windows the OK button is not rendered.
I was doing this because when I set the style to 'Universal' the buttons are rendered at different sizes, and I wanted them to appear uniform when I had set the alignment to Qt.AlignRight.