Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.1
-
None
-
-
a6532e732 (dev), 540848a4e (dev), 302124c03 (dev), 79c9ceef3 (6.7), 492385ca8 (6.7), 837f469c1 (6.7), d2f11cde6 (6.6), f6c21460a (6.6), 80f8023d2 (6.6), e219cf758 (tqtc/lts-6.5), 6bd925f6e (tqtc/lts-6.5), 02ea986d0 (tqtc/lts-6.5)
Description
The following button code worked fine before the Material style change (before Qt 6.5):
Button {
width: 60
text: qsTr("CLEAR")
}
However, when using Qt 6.6.1, "..." is displayed instead of "CLEAR" (note: using "Dense" variant).
Setting Material.roundedScale to Material.ExtraSmallScale has no effect on the text (https://www.qt.io/blog/material-3-changes-in-qt-quick-controls).
Changing the padding setting also seems to have no effect.
Similarly, icons in small buttons are truncated (or disappear). Can't you have small icon buttons anymore?
I found one rather messy workaround, which is to use RoundButtons (which seem to work as before), but then you have to play with radius and width settings to make them equivalent.
By the way, can you override the huge Dialog title font, or are there plans to do this (e.g. have a smaller font for the "Dense" variant)?
For some people, Qt 6.6.1 was the first Qt 6 version functionally equivalent to Qt 5 (e.g. Qt Location) without "showstopping" bugs (e.g. QTBUG-117959), but we now also have to deal with a forced major graphic design change.
If there are no easy equivalent workarounds to make Material migration easier for now, can the old one be put in Qt5Compat, for example?
Attachments
For Gerrit Dashboard: QTBUG-119793 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
524540,2 | Doc: mention that Material style will change over time | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
524625,4 | Material: reduce padding for Dense variant of Button | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
524635,2 | Material: reduce title pixel size and rounded scale of Dense Dialog | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
526100,2 | Doc: mention that Material style will change over time | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
526101,2 | Material: reduce padding for Dense variant of Button | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
526115,2 | Material: reduce title pixel size and rounded scale of Dense Dialog | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
526175,2 | Doc: mention that Material style will change over time | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
526176,2 | Material: reduce padding for Dense variant of Button | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
526178,2 | Material: reduce title pixel size and rounded scale of Dense Dialog | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
526396,2 | Material: reduce padding for Dense variant of Button | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
526398,2 | Material: reduce title pixel size and rounded scale of Dense Dialog | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
526399,2 | Doc: mention that Material style will change over time | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |