Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquicklayout_p.h>
Signals | |
void | minimumWidthChanged () |
void | minimumHeightChanged () |
void | preferredWidthChanged () |
void | preferredHeightChanged () |
void | maximumWidthChanged () |
void | maximumHeightChanged () |
void | fillWidthChanged () |
void | fillHeightChanged () |
Q_REVISION (6, 8) void useDefaultSizePolicyChanged() | |
void | leftMarginChanged () |
void | topMarginChanged () |
void | rightMarginChanged () |
void | bottomMarginChanged () |
void | marginsChanged () |
void | rowChanged () |
void | columnChanged () |
void | rowSpanChanged () |
void | columnSpanChanged () |
void | alignmentChanged () |
void | horizontalStretchFactorChanged () |
void | verticalStretchFactorChanged () |
Signals inherited from QObject | |
void | destroyed (QObject *=nullptr) |
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked. | |
void | objectNameChanged (const QString &objectName, QPrivateSignal) |
This signal is emitted after the object's name has been changed. | |
Public Member Functions | |
QQuickLayoutAttached (QObject *object) | |
Provides attached properties for items pushed onto a \l GridLayout, \l RowLayout or \l ColumnLayout. | |
qreal | minimumWidth () const |
void | setMinimumWidth (qreal width) |
\qmlattachedproperty real Layout::minimumWidth | |
bool | isMinimumWidthSet () const |
qreal | minimumHeight () const |
void | setMinimumHeight (qreal height) |
\qmlattachedproperty real Layout::minimumHeight | |
bool | isMinimumHeightSet () const |
qreal | preferredWidth () const |
void | setPreferredWidth (qreal width) |
\qmlattachedproperty real Layout::preferredWidth | |
bool | isPreferredWidthSet () const |
qreal | preferredHeight () const |
void | setPreferredHeight (qreal width) |
\qmlattachedproperty real Layout::preferredHeight | |
bool | isPreferredHeightSet () const |
qreal | maximumWidth () const |
void | setMaximumWidth (qreal width) |
\qmlattachedproperty real Layout::maximumWidth | |
bool | isMaximumWidthSet () const |
qreal | maximumHeight () const |
void | setMaximumHeight (qreal height) |
\qmlattachedproperty real Layout::maximumHeight | |
bool | isMaximumHeightSet () const |
void | setMinimumImplicitSize (const QSizeF &sz) |
void | setMaximumImplicitSize (const QSizeF &sz) |
bool | fillWidth () const |
void | setFillWidth (bool fill) |
\qmlattachedproperty bool Layout::fillWidth | |
bool | isFillWidthSet () const |
bool | fillHeight () const |
void | setFillHeight (bool fill) |
\qmlattachedproperty bool Layout::fillHeight | |
bool | isFillHeightSet () const |
QQuickLayout::SizePolicy | useDefaultSizePolicy () const |
void | setUseDefaultSizePolicy (QQuickLayout::SizePolicy sizePolicy) |
\qmlattachedproperty enumeration Layout::useDefaultSizePolicy | |
int | row () const |
void | setRow (int row) |
\qmlattachedproperty int Layout::row | |
bool | isRowSet () const |
int | column () const |
void | setColumn (int column) |
\qmlattachedproperty int Layout::column | |
bool | isColumnSet () const |
int | rowSpan () const |
void | setRowSpan (int span) |
\qmlattachedproperty int Layout::rowSpan | |
int | columnSpan () const |
void | setColumnSpan (int span) |
\qmlattachedproperty int Layout::columnSpan | |
Qt::Alignment | alignment () const |
void | setAlignment (Qt::Alignment align) |
\qmlattachedproperty Qt.Alignment Layout::alignment | |
bool | isAlignmentSet () const |
int | horizontalStretchFactor () const |
void | setHorizontalStretchFactor (int stretchFactor) |
\qmlattachedproperty int Layout::horizontalStretchFactor | |
bool | isHorizontalStretchFactorSet () const |
int | verticalStretchFactor () const |
void | setVerticalStretchFactor (int stretchFactor) |
\qmlattachedproperty int Layout::verticalStretchFactor | |
bool | isVerticalStretchFactorSet () const |
qreal | margins () const |
void | setMargins (qreal m) |
\qmlattachedproperty real Layout::margins | |
bool | isMarginsSet () const |
qreal | leftMargin () const |
void | setLeftMargin (qreal m) |
\qmlattachedproperty real Layout::leftMargin | |
void | resetLeftMargin () |
bool | isLeftMarginSet () const |
qreal | topMargin () const |
void | setTopMargin (qreal m) |
\qmlattachedproperty real Layout::topMargin | |
void | resetTopMargin () |
bool | isTopMarginSet () const |
qreal | rightMargin () const |
void | setRightMargin (qreal m) |
\qmlattachedproperty real Layout::rightMargin | |
void | resetRightMargin () |
bool | isRightMarginSet () const |
qreal | bottomMargin () const |
void | setBottomMargin (qreal m) |
\qmlattachedproperty real Layout::bottomMargin | |
void | resetBottomMargin () |
bool | isBottomMarginSet () const |
QMarginsF | qMargins () const |
QMarginsF | effectiveQMargins () const |
bool | setChangesNotificationEnabled (bool enabled) |
qreal | sizeHint (Qt::SizeHint which, Qt::Orientation orientation) const |
bool | isExtentExplicitlySet (Qt::Orientation o, Qt::SizeHint whichSize) const |
QQuickItemPrivate * | itemForSizePolicy (bool isFillSet) const |
Public Member Functions inherited from QObject | |
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
Constructs an object with parent object parent. | |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. | |
virtual bool | event (QEvent *event) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Filters events if this object has been installed as an event filter for the watched object. | |
QString | objectName () const |
Q_WEAK_OVERLOAD void | setObjectName (const QString &name) |
Sets the object's name to name. | |
void | setObjectName (QAnyStringView name) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
QBindable< QString > | bindableObjectName () |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false . | |
bool | isWindowType () const |
Returns true if the object is a window; otherwise returns false . | |
bool | isQuickItemType () const |
Returns true if the object is a QQuickItem; otherwise returns false . | |
bool | signalsBlocked () const noexcept |
Returns true if signals are blocked; otherwise returns false . | |
bool | blockSignals (bool b) noexcept |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). | |
QThread * | thread () const |
Returns the thread in which the object lives. | |
bool | moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL) |
Changes the thread affinity for this object and its children and returns true on success. | |
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds. | |
int | startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
void | killTimer (Qt::TimerId id) |
template<typename T > | |
T | findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object. | |
template<typename T > | |
QList< T > | findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. | |
template<typename T > | |
T | findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
template<typename T > | |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const QObjectList & | children () const |
Returns a list of child objects. | |
void | setParent (QObject *parent) |
Makes the object a child of parent. | |
void | installEventFilter (QObject *filterObj) |
Installs an event filter filterObj on this object. | |
void | removeEventFilter (QObject *obj) |
Removes an event filter object obj from this object. | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
void | dumpObjectTree () const |
Dumps a tree of children to the debug output. | |
void | dumpObjectInfo () const |
Dumps information about signal connections, etc. | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. | |
bool | setProperty (const char *name, QVariant &&value) |
QVariant | property (const char *name) const |
Returns the value of the object's name property. | |
QList< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () const |
Returns a pointer to the parent object. | |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false . | |
Properties | |
qreal | minimumWidth |
qreal | minimumHeight |
qreal | preferredWidth |
qreal | preferredHeight |
qreal | maximumWidth |
qreal | maximumHeight |
bool | fillHeight |
bool | fillWidth |
QQuickLayout::SizePolicy | useDefaultSizePolicy |
int | row |
int | column |
int | rowSpan |
int | columnSpan |
Qt::Alignment | alignment |
int | horizontalStretchFactor |
int | verticalStretchFactor |
qreal | margins |
qreal | leftMargin |
qreal | topMargin |
qreal | rightMargin |
qreal | bottomMargin |
Properties inherited from QObject | |
QString | objectName |
the name of this object | |
Friends | |
class | QQuickLayout |
Additional Inherited Members | |
Public Slots inherited from QObject | |
void | deleteLater () |
\threadsafe | |
Static Public Member Functions inherited from QObject | |
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
\threadsafe | |
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
\threadsafe | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static bool | disconnect (const QMetaObject::Connection &) |
Disconnect a connection. | |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
template<typename Func1 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
Protected Member Functions inherited from QObject | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr. | |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. | |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
virtual void | childEvent (QChildEvent *event) |
This event handler can be reimplemented in a subclass to receive child events. | |
virtual void | customEvent (QEvent *event) |
This event handler can be reimplemented in a subclass to receive custom events. | |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
Protected Attributes inherited from QObject | |
QScopedPointer< QObjectData > | d_ptr |
Related Symbols inherited from QObject | |
template< class T > T | qobject_cast (const QObject *object) |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr. | |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
\macro Q_CLASSINFO(Name, Value) | |
Definition at line 166 of file qquicklayout_p.h.
QT_BEGIN_NAMESPACE QQuickLayoutAttached::QQuickLayoutAttached | ( | QObject * | parent | ) |
Provides attached properties for items pushed onto a \l GridLayout, \l RowLayout or \l ColumnLayout.
\qmltype Layout
! \nativetype QQuickLayoutAttached \inqmlmodule QtQuick.Layouts
An object of type Layout is attached to children of the layout to provide layout specific information about the item. The properties of the attached object influence how the layout will arrange the items.
For instance, you can specify \l minimumWidth, \l preferredWidth, and \l maximumWidth if the default values are not satisfactory.
When a layout is resized, items may grow or shrink. Due to this, items have a \l{Layout::minimumWidth}{minimum size}, \l{Layout::preferredWidth}{preferred size} and a \l{Layout::maximumWidth}{maximum size}.
If minimum size has not been explicitly specified on an item, the size is set to 0
. If maximum size has not been explicitly specified on an item, the size is set to Number.POSITIVE_INFINITY
.
For layouts, the implicit minimum and maximum sizes depend on the content of the layouts.
The \l fillWidth and \l fillHeight properties can either be true
or false
. If they are false
, the item's size will be fixed to its preferred size. Otherwise, it will grow or shrink between its minimum and maximum size as the layout is resized. If there are multiple items with \l fillWidth (or \l fillHeight) set to true
, the layout will grow or shrink the items relative to the ratio of their preferred size.
For more details on the layout algorithm, see also the \l {Qt Quick Layouts Overview}.
Definition at line 64 of file qquicklayout.cpp.
|
inline |
Definition at line 260 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 290 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 251 of file qquicklayout_p.h.
Referenced by testing.tools.encode_pdf_filter._Ascii85DecodePdfStream::close().
|
signal |
|
inline |
Definition at line 257 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 299 of file qquicklayout_p.h.
|
inline |
Definition at line 232 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 222 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 264 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 262 of file qquicklayout_p.h.
|
inline |
Definition at line 293 of file qquicklayout_p.h.
|
inline |
Definition at line 253 of file qquicklayout_p.h.
|
inline |
Definition at line 316 of file qquicklayout_p.h.
|
inline |
Definition at line 240 of file qquicklayout_p.h.
|
inline |
Definition at line 230 of file qquicklayout_p.h.
|
inline |
Definition at line 266 of file qquicklayout_p.h.
|
inline |
Definition at line 278 of file qquicklayout_p.h.
|
inline |
Definition at line 273 of file qquicklayout_p.h.
|
inline |
Definition at line 217 of file qquicklayout_p.h.
|
inline |
Definition at line 213 of file qquicklayout_p.h.
|
inline |
Definition at line 201 of file qquicklayout_p.h.
|
inline |
Definition at line 197 of file qquicklayout_p.h.
|
inline |
Definition at line 209 of file qquicklayout_p.h.
|
inline |
Definition at line 205 of file qquicklayout_p.h.
|
inline |
Definition at line 288 of file qquicklayout_p.h.
|
inline |
Definition at line 250 of file qquicklayout_p.h.
|
inline |
Definition at line 283 of file qquicklayout_p.h.
|
inline |
Definition at line 269 of file qquicklayout_p.h.
|
inline |
Definition at line 332 of file qquicklayout_p.h.
|
inline |
Definition at line 275 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 271 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 215 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 211 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 199 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 195 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 207 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 203 of file qquicklayout_p.h.
|
signal |
|
signal |
|
inline |
Definition at line 295 of file qquicklayout_p.h.
void QQuickLayoutAttached::resetBottomMargin | ( | ) |
Definition at line 683 of file qquicklayout.cpp.
void QQuickLayoutAttached::resetLeftMargin | ( | ) |
Definition at line 590 of file qquicklayout.cpp.
void QQuickLayoutAttached::resetRightMargin | ( | ) |
Definition at line 652 of file qquicklayout.cpp.
void QQuickLayoutAttached::resetTopMargin | ( | ) |
Definition at line 621 of file qquicklayout.cpp.
|
inline |
Definition at line 285 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 248 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 255 of file qquicklayout_p.h.
|
signal |
void QQuickLayoutAttached::setAlignment | ( | Qt::Alignment | align | ) |
\qmlattachedproperty Qt.Alignment Layout::alignment
This property allows you to specify the alignment of an item within the cell(s) it occupies.
The default value is 0
, which means it will be {Qt.AlignVCenter | Qt.AlignLeft}. These defaults also apply if only a horizontal or vertical flag is specified: if only a horizontal flag is specified, the default vertical flag will be
Qt.AlignVCenter
, and if only a vertical flag is specified, the default horizontal flag will be Qt.AlignLeft
.
A valid alignment is a combination of the following flags: \list
Definition at line 434 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::bottomMargin
Specifies the bottom margin outside of an item. If the value is not set, it will use the value from \l margins.
Definition at line 672 of file qquicklayout.cpp.
|
inline |
Definition at line 307 of file qquicklayout_p.h.
void QQuickLayoutAttached::setColumn | ( | int | column | ) |
\qmlattachedproperty int Layout::column
This property allows you to specify the column position of an item in a \l GridLayout.
If both \l row and this property are not set, it is up to the layout to assign a cell to the item.
The default value is 0
.
Definition at line 401 of file qquicklayout.cpp.
void QQuickLayoutAttached::setColumnSpan | ( | int | span | ) |
\qmlattachedproperty int Layout::columnSpan
This property allows you to specify the column span of an item in a \l GridLayout.
The default value is 1
.
Definition at line 724 of file qquicklayout.cpp.
void QQuickLayoutAttached::setFillHeight | ( | bool | fill | ) |
\qmlattachedproperty bool Layout::fillHeight
If this property is true
, the item will be as tall as possible while respecting the given constraints. If the property is false
, the item will have a fixed height set to the preferred height. The default depends on implicit (built-in) size policy of the item.
Definition at line 333 of file qquicklayout.cpp.
void QQuickLayoutAttached::setFillWidth | ( | bool | fill | ) |
\qmlattachedproperty bool Layout::fillWidth
If this property is true
, the item will be as wide as possible while respecting the given constraints. If the property is false
, the item will have a fixed width set to the preferred width. The default depends on implicit (built-in) size policy of item.
Definition at line 312 of file qquicklayout.cpp.
void QQuickLayoutAttached::setHorizontalStretchFactor | ( | int | factor | ) |
\qmlattachedproperty int Layout::horizontalStretchFactor
This property allows you to specify the horizontal stretch factor. By default, two identical items arranged in a linear layout will have the same size, but if the first item has a stretch factor of 1 and the second item has a stretch factor of 2, the first item will aim to get 1/3 of the available space, and the second will aim to get 2/3 of the available space. Note that, whether they become exactly 1/3 and 2/3 of the available space depends on their size hints. This is because when e.g a horizontal layout is shown in its minimum width all its child items will consequently also have their minimum width.
Likewise, when a horizontal layout has its preferred width, all child items will have their preferred widths, and when a horizontal layout has its maximum width, all child items will have their maximum widths. This strategy is applied regardless of what the individual stretch factors are. As a consequence of this, stretch factors will only determine the growth rate of child items between the preferredWidth and maximumWidth range.
The default value is -1
, which means that no stretch factor is applied.
Definition at line 472 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::leftMargin
Specifies the left margin outside of an item. If the value is not set, it will use the value from \l margins.
Definition at line 579 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::margins
Sets the margins outside of an item to all have the same value. The item itself does not evaluate its own margins. It is the parent's responsibility to decide if it wants to evaluate the margins.
Specifically, margins are only evaluated by ColumnLayout, RowLayout, GridLayout, and other layout-like containers, such as SplitView, where the effective cell size of an item will be increased as the margins are increased.
Therefore, if an item with margins is a child of another Item
, its position, size and implicit size will remain unchanged.
Combining margins with alignment will align the item including its margins. For instance, a vertically-centered Item with a top margin of 1
and a bottom margin of 9
will cause the Items effective alignment within the cell to be 4 pixels above the center.
The default value is 0
.
Definition at line 550 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::maximumHeight
The default value is the item's implicit maximum height.
If the item is a layout, the implicit maximum height will be the maximum height the layout can have without any of its items growing beyond their maximum height. The implicit maximum height for any other item is Number.POSITIVE_INFINITY
.
Setting this value to -1
will reset the height back to its implicit maximum height.
Definition at line 243 of file qquicklayout.cpp.
Definition at line 279 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::maximumWidth
This property holds the maximum width of an item in a layout. The default value is the item's implicit maximum width.
If the item is a layout, the implicit maximum width will be the maximum width the layout can have without any of its items growing beyond their maximum width. The implicit maximum width for any other item is Number.POSITIVE_INFINITY
.
Setting this value to -1
will reset the width back to its implicit maximum width.
Definition at line 216 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::minimumHeight
This property holds the minimum height of an item in a layout. The default value is the item's implicit minimum height.
If the item is a layout, the implicit minimum height will be the minimum height the layout can have without any of its items shrinking below their minimum height. The implicit minimum height for any other item is 0
.
Setting this value to -1 will reset the height back to its implicit minimum height.
Definition at line 146 of file qquicklayout.cpp.
Definition at line 256 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::minimumWidth
This property holds the minimum width of an item in a layout. The default value is the item's implicit minimum width.
If the item is a layout, the implicit minimum width will be the minimum width the layout can have without any of its items shrinking below their minimum width. The implicit minimum width for any other item is 0
.
Setting this value to -1 will reset the width back to its implicit minimum width.
Definition at line 118 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::preferredHeight
This property holds the preferred height of an item in a layout. If the preferred height is -1
it will be ignored, and the layout will use \l{Item::implicitHeight}{implicitHeight} instead. The default is -1
.
Definition at line 191 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::preferredWidth
This property holds the preferred width of an item in a layout. If the preferred width is -1
it will be ignored, and the layout will use \l{Item::implicitWidth}{implicitWidth} instead. The default is -1
.
Definition at line 170 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::rightMargin
Specifies the right margin outside of an item. If the value is not set, it will use the value from \l margins.
Definition at line 641 of file qquicklayout.cpp.
void QQuickLayoutAttached::setRow | ( | int | row | ) |
\qmlattachedproperty int Layout::row
This property allows you to specify the row position of an item in a \l GridLayout.
If both \l column and this property are not set, it is up to the layout to assign a cell to the item.
The default value is 0
.
Definition at line 380 of file qquicklayout.cpp.
void QQuickLayoutAttached::setRowSpan | ( | int | span | ) |
\qmlattachedproperty int Layout::rowSpan
This property allows you to specify the row span of an item in a \l GridLayout.
The default value is 1
.
Definition at line 704 of file qquicklayout.cpp.
\qmlattachedproperty real Layout::topMargin
Specifies the top margin outside of an item. If the value is not set, it will use the value from \l margins.
Definition at line 610 of file qquicklayout.cpp.
void QQuickLayoutAttached::setUseDefaultSizePolicy | ( | QQuickLayout::SizePolicy | sizePolicy | ) |
\qmlattachedproperty enumeration Layout::useDefaultSizePolicy
This property allows the user to configure the layout size policy at the component level.
The default value will be inherited by querying the application attribute \l Qt::AA_QtQuickUseDefaultSizePolicy. You can use this property to override that value.
\value Layout.SizePolicyImplicit The item in the layout uses implicit or built-in size policy \value Layout.SizePolicyExplicit The item in the layout don't use implicit size policies.
Definition at line 359 of file qquicklayout.cpp.
void QQuickLayoutAttached::setVerticalStretchFactor | ( | int | factor | ) |
\qmlattachedproperty int Layout::verticalStretchFactor
This property allows you to specify the vertical stretch factor. By default, two identical items arranged in a linear layout will have the same size, but if the first item has a stretch factor of 1 and the second item has a stretch factor of 2, the first item will aim to get 1/3 of the available space, and the second will aim to get 2/3 of the available space. Note that, whether they become exactly 1/3 and 2/3 of the available space depends on their size hints. This is because when e.g a vertical layout is shown in its minimum height all its child items will consequently also have their minimum height.
Likewise, when a vertical layout has its preferred height, all child items will have their preferred heights, and when a vertical layout has its maximum height, all child items will have their maximum heights. This strategy is applied regardless of what the individual stretch factors are. As a consequence of this, stretch factors will only determine the growth rate of child items between the preferredHeight and maximumHeight range.
The default value is -1
, which means that no stretch factor is applied.
Definition at line 509 of file qquicklayout.cpp.
qreal QQuickLayoutAttached::sizeHint | ( | Qt::SizeHint | which, |
Qt::Orientation | orientation ) const |
Definition at line 734 of file qquicklayout.cpp.
|
inline |
Definition at line 280 of file qquicklayout_p.h.
|
signal |
|
inline |
Definition at line 242 of file qquicklayout_p.h.
|
inline |
Definition at line 267 of file qquicklayout_p.h.
|
signal |
|
friend |
Definition at line 410 of file qquicklayout_p.h.
|
readwrite |
Definition at line 182 of file qquicklayout_p.h.
|
readwrite |
Definition at line 190 of file qquicklayout_p.h.
|
readwrite |
Definition at line 179 of file qquicklayout_p.h.
Referenced by testing.tools.encode_pdf_filter._Ascii85DecodePdfStream::close().
|
readwrite |
Definition at line 181 of file qquicklayout_p.h.
|
readwrite |
Definition at line 175 of file qquicklayout_p.h.
|
readwrite |
Definition at line 176 of file qquicklayout_p.h.
|
readwrite |
Definition at line 183 of file qquicklayout_p.h.
|
readwrite |
Definition at line 187 of file qquicklayout_p.h.
|
readwrite |
Definition at line 186 of file qquicklayout_p.h.
|
readwrite |
Definition at line 174 of file qquicklayout_p.h.
|
readwrite |
Definition at line 173 of file qquicklayout_p.h.
|
readwrite |
Definition at line 170 of file qquicklayout_p.h.
|
readwrite |
Definition at line 169 of file qquicklayout_p.h.
|
readwrite |
Definition at line 172 of file qquicklayout_p.h.
|
readwrite |
Definition at line 171 of file qquicklayout_p.h.
|
readwrite |
Definition at line 189 of file qquicklayout_p.h.
|
readwrite |
Definition at line 178 of file qquicklayout_p.h.
|
readwrite |
Definition at line 180 of file qquicklayout_p.h.
|
readwrite |
Definition at line 188 of file qquicklayout_p.h.
|
readwrite |
Definition at line 177 of file qquicklayout_p.h.
|
readwrite |
Definition at line 184 of file qquicklayout_p.h.