Add note about the risk of setting min-width/height in a style sheet
Task-number: QTBUG-86677 Change-Id: I1e5e10ee79d80fee40d04afe439489d6ce16a43e Reviewed-by: Andy Shaw <andy.shaw@qt.io> (cherry picked from commit 6fd480142bd253de095c1e4b79c119c9ed7d20a5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
be6fce0962
commit
68aa09b5bd
@ -2167,7 +2167,7 @@
|
|||||||
subclasses, QAbstractSpinBox subclasses, QCheckBox,
|
subclasses, QAbstractSpinBox subclasses, QCheckBox,
|
||||||
QComboBox, QFrame, QGroupBox, QLabel, QLineEdit, QMenu,
|
QComboBox, QFrame, QGroupBox, QLabel, QLineEdit, QMenu,
|
||||||
QMenuBar, QPushButton, QRadioButton, QSizeGrip, QSpinBox,
|
QMenuBar, QPushButton, QRadioButton, QSizeGrip, QSpinBox,
|
||||||
QSplitter, QStatusBar, QTextEdit, and QToolTip.
|
QSplitter, QStatusBar, QTextEdit, QToolButton, and QToolTip.
|
||||||
|
|
||||||
If this property is not specified, the minimum height is
|
If this property is not specified, the minimum height is
|
||||||
derived based on the widget's contents and the style.
|
derived based on the widget's contents and the style.
|
||||||
@ -2179,6 +2179,9 @@
|
|||||||
|
|
||||||
\snippet code/doc_src_stylesheet.qdoc 66
|
\snippet code/doc_src_stylesheet.qdoc 66
|
||||||
|
|
||||||
|
\note Setting this property might allow widgets to shrink
|
||||||
|
smaller than the space required for the contents.
|
||||||
|
|
||||||
See also \l{#min-width-prop}{min-width}.
|
See also \l{#min-width-prop}{min-width}.
|
||||||
|
|
||||||
\row
|
\row
|
||||||
@ -2190,7 +2193,7 @@
|
|||||||
subclasses, QAbstractSpinBox subclasses, QCheckBox,
|
subclasses, QAbstractSpinBox subclasses, QCheckBox,
|
||||||
QComboBox, QFrame, QGroupBox, QLabel, QLineEdit, QMenu,
|
QComboBox, QFrame, QGroupBox, QLabel, QLineEdit, QMenu,
|
||||||
QMenuBar, QPushButton, QRadioButton, QSizeGrip, QSpinBox,
|
QMenuBar, QPushButton, QRadioButton, QSizeGrip, QSpinBox,
|
||||||
QSplitter, QStatusBar, QTextEdit, and QToolTip.
|
QSplitter, QStatusBar, QTextEdit, QToolButton, and QToolTip.
|
||||||
|
|
||||||
If this property is not specified, the minimum width is
|
If this property is not specified, the minimum width is
|
||||||
derived based on the widget's contents and the style.
|
derived based on the widget's contents and the style.
|
||||||
@ -2202,6 +2205,9 @@
|
|||||||
|
|
||||||
\snippet code/doc_src_stylesheet.qdoc 67
|
\snippet code/doc_src_stylesheet.qdoc 67
|
||||||
|
|
||||||
|
\note Setting this property might allow widgets to shrink
|
||||||
|
smaller than the space required for the contents.
|
||||||
|
|
||||||
See also \l{#min-height-prop}{min-height}.
|
See also \l{#min-height-prop}{min-height}.
|
||||||
|
|
||||||
\row
|
\row
|
||||||
|
Loading…
x
Reference in New Issue
Block a user