Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickSplitViewPrivate Class Reference

#include <qquicksplitview_p_p.h>

+ Inheritance diagram for QQuickSplitViewPrivate:
+ Collaboration diagram for QQuickSplitViewPrivate:

Classes

struct  EffectiveSizeData
 
struct  LayoutData
 

Public Member Functions

void updateFillIndex ()
 Lays out items with a draggable splitter between each item.
 
void layoutResizeSplitItems (qreal &usedWidth, qreal &usedHeight, int &indexBeingResizedDueToDrag)
 
void layoutResizeFillItem (QQuickItem *fillItem, qreal &usedWidth, qreal &usedHeight, int indexBeingResizedDueToDrag)
 
void limitAndApplySizes (qreal usedWidth, qreal usedHeight)
 
void layoutPositionItems (const QQuickItem *fillItem)
 
void requestLayout ()
 
void layout ()
 
void createHandles ()
 
void createHandleItem (int index)
 
void removeExcessHandles ()
 
void destroyHandles ()
 
void resizeHandle (QQuickItem *handleItem)
 
void resizeHandles ()
 
void updateHandleVisibilities ()
 
void updateHoveredHandle (QQuickItem *hoveredItem)
 
void setResizing (bool resizing)
 
bool isHorizontal () const
 
qreal accumulatedSize (int firstIndex, int lastIndex) const
 
EffectiveSizeData effectiveSizeData (const QQuickItemPrivate *itemPrivate, const QQuickSplitViewAttached *attached) const
 
int handleIndexForSplitIndex (int splitIndex) const
 
QQuickItemgetContentItem () override
 
bool handlePress (const QPointF &point, ulong timestamp) override
 
bool handleMove (const QPointF &point, ulong timestamp) override
 
bool handleRelease (const QPointF &point, ulong timestamp) override
 
void itemVisibilityChanged (QQuickItem *item) override
 
void itemImplicitWidthChanged (QQuickItem *item) override
 
void itemImplicitHeightChanged (QQuickItem *item) override
 
void updatePolish () override
 
- Public Member Functions inherited from QQuickContainerPrivate
void init ()
 
void cleanup ()
 
QQuickItemitemAt (int index) const
 
void insertItem (int index, QQuickItem *item)
 
void moveItem (int from, int to, QQuickItem *item)
 
void removeItem (int index, QQuickItem *item)
 
void reorderItems ()
 
void _q_currentIndexChanged ()
 
void itemChildAdded (QQuickItem *item, QQuickItem *child) override
 
void itemSiblingOrderChanged (QQuickItem *item) override
 
void itemParentChanged (QQuickItem *item, QQuickItem *parent) override
 
void itemDestroyed (QQuickItem *item) override
 
void updateContentWidth ()
 
void updateContentHeight ()
 
- Public Member Functions inherited from QQuickControlPrivate
 QQuickControlPrivate ()
 
 ~QQuickControlPrivate ()
 
void init ()
 
virtual void handleUngrab ()
 
void mirrorChange () override
 
QMarginsF getPadding () const
 
qreal getTopPadding () const
 
qreal getLeftPadding () const
 
qreal getRightPadding () const
 
qreal getBottomPadding () const
 
qreal getHorizontalPadding () const
 
qreal getVerticalPadding () const
 
void setTopPadding (qreal value, bool reset=false)
 
void setLeftPadding (qreal value, bool reset=false)
 
void setRightPadding (qreal value, bool reset=false)
 
void setBottomPadding (qreal value, bool reset=false)
 
void setHorizontalPadding (qreal value, bool reset=false)
 
void setVerticalPadding (qreal value, bool reset=false)
 
QMarginsF getInset () const
 
qreal getTopInset () const
 
qreal getLeftInset () const
 
qreal getRightInset () const
 
qreal getBottomInset () const
 
void setTopInset (qreal value, bool reset=false)
 
void setLeftInset (qreal value, bool reset=false)
 
void setRightInset (qreal value, bool reset=false)
 
void setBottomInset (qreal value, bool reset=false)
 
virtual void resizeBackground ()
 
virtual void resizeContent ()
 
void setContentItem_helper (QQuickItem *item, bool notify=true)
 
virtual void resolveFont ()
 
void inheritFont (const QFont &font)
 
void updateFont (const QFont &font)
 
void setFont_helper (const QFont &font)
 
void updateLocale (const QLocale &l, bool e)
 
virtual void cancelContentItem ()
 
virtual void executeContentItem (bool complete=false)
 
virtual void cancelBackground ()
 
virtual void executeBackground (bool complete=false)
 
void updateBaselineOffset ()
 
void addImplicitSizeListener (QQuickItem *item, ChangeTypes changes=ImplicitSizeChanges)
 
void removeImplicitSizeListener (QQuickItem *item, ChangeTypes changes=ImplicitSizeChanges)
 
void itemGeometryChanged (QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override
 
void itemDestroyed (QQuickItem *item) override
 
void itemFocusChanged (QQuickItem *item, Qt::FocusReason reason) override
 
virtual qreal getContentWidth () const
 
virtual qreal getContentHeight () const
 
void updateImplicitContentWidth ()
 
void updateImplicitContentHeight ()
 
void updateImplicitContentSize ()
 
QPalette defaultPalette () const override
 
- Public Member Functions inherited from QQuickItemPrivate
 QQuickItemPrivate ()
 
 ~QQuickItemPrivate () override
 
void init (QQuickItem *parent)
 
QQmlListProperty< QObjectdata ()
 
QQmlListProperty< QObjectresources ()
 
QQmlListProperty< QQuickItemchildren ()
 
QQmlListProperty< QQuickItemvisibleChildren ()
 
QQmlListProperty< QQuickStatestates ()
 
QQmlListProperty< QQuickTransitiontransitions ()
 
QString state () const
 
void setState (const QString &)
 
QQuickAnchorLine left () const
 
QQuickAnchorLine right () const
 
QQuickAnchorLine horizontalCenter () const
 
QQuickAnchorLine top () const
 
QQuickAnchorLine bottom () const
 
QQuickAnchorLine verticalCenter () const
 
QQuickAnchorLine baseline () const
 
void localizedTouchEvent (const QTouchEvent *event, bool isFiltering, QMutableTouchEvent *localized)
 
bool hasPointerHandlers () const
 
bool hasEnabledHoverHandlers () const
 
virtual void addPointerHandler (QQuickPointerHandler *h)
 
virtual void removePointerHandler (QQuickPointerHandler *h)
 
void _q_resourceObjectDeleted (QObject *)
 
quint64 _q_createJSWrapper (QQmlV4ExecutionEnginePtr engine)
 
template<typename Fn , typename ... Args>
void notifyChangeListeners (QQuickItemPrivate::ChangeTypes changeTypes, Fn &&function, Args &&...args)
 
virtual void registerAsContainmentMask (QQuickItem *, bool)
 
QQuickAnchorsanchors () const
 \qmlpropertygroup QtQuick::Item::anchors \qmlproperty AnchorLine QtQuick::Item::anchors.top \qmlproperty AnchorLine QtQuick::Item::anchors.bottom \qmlproperty AnchorLine QtQuick::Item::anchors.left \qmlproperty AnchorLine QtQuick::Item::anchors.right \qmlproperty AnchorLine QtQuick::Item::anchors.horizontalCenter \qmlproperty AnchorLine QtQuick::Item::anchors.verticalCenter \qmlproperty AnchorLine QtQuick::Item::anchors.baseline
 
Qt::MouseButtons acceptedMouseButtons () const
 
void addItemChangeListener (QQuickItemChangeListener *listener, ChangeTypes types)
 
void updateOrAddItemChangeListener (QQuickItemChangeListener *listener, ChangeTypes types)
 
void removeItemChangeListener (QQuickItemChangeListener *, ChangeTypes types)
 
void updateOrAddGeometryChangeListener (QQuickItemChangeListener *listener, QQuickGeometryChange types)
 
void updateOrRemoveGeometryChangeListener (QQuickItemChangeListener *listener, QQuickGeometryChange types)
 
QQuickStateGroup_states ()
 
QQuickItem::TransformOrigin origin () const
 
QString dirtyToString () const
 
void dirty (DirtyType)
 
void addToDirtyList ()
 
void removeFromDirtyList ()
 
void setCulled (bool)
 
QSGContextsceneGraphContext () const
 
QSGRenderContextsceneGraphRenderContext () const
 
QList< QQuickItem * > paintOrderChildItems () const
 
void addChild (QQuickItem *)
 
void removeChild (QQuickItem *)
 
void siblingOrderChanged ()
 
void markSortedChildrenDirty (QQuickItem *child)
 
void refWindow (QQuickWindow *)
 
void derefWindow ()
 
void updateSubFocusItem (QQuickItem *scope, bool focus)
 Clears all sub focus items from scope.
 
bool setFocusIfNeeded (QEvent::Type)
 
Qt::FocusReason lastFocusChangeReason () const
 
void setLastFocusChangeReason (Qt::FocusReason reason)
 
QTransform windowToItemTransform () const
 Returns a transform that maps points from window space into item space.
 
QTransform itemToWindowTransform () const
 Returns a transform that maps points from item space into window space.
 
void itemToParentTransform (QTransform *) const
 Modifies t with this item's local transform relative to its parent.
 
QTransform globalToWindowTransform () const
 Returns a transform that maps points from global space into window space.
 
QTransform windowToGlobalTransform () const
 Returns a transform that maps points from window space into global space.
 
void setX (qreal x)
 
void xChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, x, &QQuickItemPrivate::setX, &QQuickItemPrivate::xChanged)
 
void setY (qreal y)
 
void yChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, y, &QQuickItemPrivate::setY, &QQuickItemPrivate::yChanged)
 
void setWidth (qreal width)
 
void widthChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, width, &QQuickItemPrivate::setWidth, &QQuickItemPrivate::widthChanged)
 
void setHeight (qreal height)
 
void heightChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, height, &QQuickItemPrivate::setHeight, &QQuickItemPrivate::heightChanged)
 
bool widthValid () const
 
bool heightValid () const
 
qreal z () const
 
qreal scale () const
 
qreal rotation () const
 
qreal opacity () const
 
void setAccessible ()
 
virtual qreal getImplicitWidth () const
 
virtual qreal getImplicitHeight () const
 
virtual void implicitWidthChanged ()
 
virtual void implicitHeightChanged ()
 
void setImplicitAntialiasing (bool antialiasing)
 
void resolveLayoutMirror ()
 
void setImplicitLayoutMirror (bool mirror, bool inherit)
 
void setLayoutMirror (bool mirror)
 
bool isMirrored () const
 
void emitChildrenRectChanged (const QRectF &rect)
 
QPointF computeTransformOrigin () const
 
virtual bool transformChanged (QQuickItem *transformedItem)
 
QPointF adjustedPosForTransform (const QPointF &centroid, const QPointF &startPos, const QVector2D &activeTranslatation, qreal startScale, qreal activeScale, qreal startRotation, qreal activeRotation)
 
QQuickDeliveryAgentdeliveryAgent ()
 
QQuickDeliveryAgentPrivatedeliveryAgentPrivate ()
 
QQuickDeliveryAgentensureSubsceneDeliveryAgent ()
 
void deliverKeyEvent (QKeyEvent *)
 
bool filterKeyEvent (QKeyEvent *, bool post)
 
void deliverShortcutOverrideEvent (QKeyEvent *)
 
void deliverPointerEvent (QEvent *)
 
bool anyPointerHandlerWants (const QPointerEvent *event, const QEventPoint &point) const
 
virtual bool handlePointerEvent (QPointerEvent *, bool avoidGrabbers=false)
 
virtual void setVisible (bool visible)
 
bool isTransparentForPositioner () const
 
void setTransparentForPositioner (bool trans)
 
bool calcEffectiveVisible () const
 
bool setEffectiveVisibleRecur (bool)
 
bool calcEffectiveEnable () const
 
void setEffectiveEnableRecur (QQuickItem *scope, bool)
 
QSGTransformNodeitemNode ()
 
QSGNodechildContainerNode ()
 
QSGOpacityNodeopacityNode () const
 
QQuickDefaultClipNodeclipNode () const
 
QSGRootNoderootNode () const
 
virtual QSGTransformNodecreateTransformNode ()
 
void refFromEffectItem (bool hide)
 
void recursiveRefFromEffectItem (int refs)
 
void derefFromEffectItem (bool unhide)
 
void itemChange (QQuickItem::ItemChange, const QQuickItem::ItemChangeData &)
 
void enableSubtreeChangeNotificationsForParentHierachy ()
 
void setHasCursorInChild (bool hasCursor)
 
void setHasHoverInChild (bool hasHover)
 
virtual void dumpItemTree (int indent) const
 
QLayoutPolicy sizePolicy () const
 
void setSizePolicy (const QLayoutPolicy::Policy &horizontalPolicy, const QLayoutPolicy::Policy &verticalPolicy)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 
- Public Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >
virtual ~QQuickPaletteProviderPrivateBase ()=default
 
virtual QQuickPalettepalette () const
 
virtual void setPalette (QQuickPalette *p)
 
virtual void resetPalette ()
 
virtual bool providesPalette () const
 
QPalette defaultPalette () const override
 
QPalette parentPalette (const QPalette &fallbackPalette) const override
 
void inheritPalette (const QPalette &parentPalette)
 
virtual void updateChildrenPalettes (const QPalette &parentPalette)
 
- Public Member Functions inherited from QQuickAbstractPaletteProvider
virtual ~QQuickAbstractPaletteProvider ()=default
 
- Public Member Functions inherited from QQuickItemChangeListener
virtual ~QQuickItemChangeListener ()
 
virtual void itemEnabledChanged (QQuickItem *)
 
virtual void itemOpacityChanged (QQuickItem *)
 
virtual void itemChildRemoved (QQuickItem *, QQuickItem *)
 
virtual void itemRotationChanged (QQuickItem *)
 
virtual QQuickAnchorsPrivateanchorPrivate ()
 

Static Public Member Functions

static QQuickSplitViewPrivateget (QQuickSplitView *splitView)
 
- Static Public Member Functions inherited from QQuickContainerPrivate
static QQuickContainerPrivateget (QQuickContainer *container)
 
static void contentData_append (QQmlListProperty< QObject > *prop, QObject *obj)
 
static qsizetype contentData_count (QQmlListProperty< QObject > *prop)
 
static QObjectcontentData_at (QQmlListProperty< QObject > *prop, qsizetype index)
 
static void contentData_clear (QQmlListProperty< QObject > *prop)
 
static void contentChildren_append (QQmlListProperty< QQuickItem > *prop, QQuickItem *obj)
 
static qsizetype contentChildren_count (QQmlListProperty< QQuickItem > *prop)
 
static QQuickItemcontentChildren_at (QQmlListProperty< QQuickItem > *prop, qsizetype index)
 
static void contentChildren_clear (QQmlListProperty< QQuickItem > *prop)
 
- Static Public Member Functions inherited from QQuickControlPrivate
static QQuickControlPrivateget (QQuickControl *control)
 
static void updateFontRecur (QQuickItem *item, const QFont &font)
 
static QFont parentFont (const QQuickItem *item)
 
static void updateLocaleRecur (QQuickItem *item, const QLocale &l)
 
static QLocale calcLocale (const QQuickItem *item)
 
static void warnIfCustomizationNotSupported (QObject *control, QQuickItem *item, const QString &propertyName)
 
static void hideOldItem (QQuickItem *item)
 
static void unhideOldItem (QQuickControl *control, QQuickItem *item, UnhideVisibility visibility=UnhideVisibility::Show)
 
static void addImplicitSizeListener (QQuickItem *item, QQuickItemChangeListener *listener, ChangeTypes changes=ImplicitSizeChanges)
 
static void removeImplicitSizeListener (QQuickItem *item, QQuickItemChangeListener *listener, ChangeTypes changes=ImplicitSizeChanges)
 
- Static Public Member Functions inherited from QQuickItemPrivate
static QQuickItemPrivateget (QQuickItem *item)
 
static const QQuickItemPrivateget (const QQuickItem *item)
 
static void data_append (QQmlListProperty< QObject > *, QObject *)
 
static qsizetype data_count (QQmlListProperty< QObject > *)
 \qmlproperty list<QtObject> QtQuick::Item::data \qmldefault
 
static QObjectdata_at (QQmlListProperty< QObject > *, qsizetype)
 
static void data_clear (QQmlListProperty< QObject > *)
 
static void data_removeLast (QQmlListProperty< QObject > *)
 
static QObjectresources_at (QQmlListProperty< QObject > *, qsizetype)
 
static void resources_append (QQmlListProperty< QObject > *, QObject *)
 
static qsizetype resources_count (QQmlListProperty< QObject > *)
 
static void resources_clear (QQmlListProperty< QObject > *)
 
static void resources_removeLast (QQmlListProperty< QObject > *)
 
static void children_append (QQmlListProperty< QQuickItem > *, QQuickItem *)
 
static qsizetype children_count (QQmlListProperty< QQuickItem > *)
 
static QQuickItemchildren_at (QQmlListProperty< QQuickItem > *, qsizetype)
 
static void children_clear (QQmlListProperty< QQuickItem > *)
 
static void children_removeLast (QQmlListProperty< QQuickItem > *)
 
static qsizetype visibleChildren_count (QQmlListProperty< QQuickItem > *prop)
 
static QQuickItemvisibleChildren_at (QQmlListProperty< QQuickItem > *prop, qsizetype index)
 
static qsizetype transform_count (QQmlListProperty< QQuickTransform > *list)
 
static void transform_append (QQmlListProperty< QQuickTransform > *list, QQuickTransform *)
 
static QQuickTransformtransform_at (QQmlListProperty< QQuickTransform > *list, qsizetype)
 
static void transform_clear (QQmlListProperty< QQuickTransform > *list)
 
static bool focusNextPrev (QQuickItem *item, bool forward)
 QQuickItemPrivate::focusNextPrev focuses the next/prev item in the tab-focus-chain.
 
static QQuickItemnextTabChildItem (const QQuickItem *item, int start)
 
static QQuickItemprevTabChildItem (const QQuickItem *item, int start)
 
static QQuickItemnextPrevItemInTabFocusChain (QQuickItem *item, bool forward, bool wrap=true)
 
static bool canAcceptTabFocus (QQuickItem *item)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Public Attributes

Qt::Orientation m_orientation = Qt::Horizontal
 
QQmlComponentm_handle = nullptr
 
QList< QQuickItem * > m_handleItems
 
QHash< QQuickItem *, LayoutDatam_layoutData
 
int m_hoveredHandleIndex = -1
 
int m_pressedHandleIndex = -1
 
int m_nextVisibleIndexAfterPressedHandle = -1
 
QPointF m_pressPos
 
QPointF m_mousePos
 
QPointF m_handlePosBeforePress
 
qreal m_leftOrTopItemSizeBeforePress = 0.0
 
qreal m_rightOrBottomItemSizeBeforePress = 0.0
 
int m_fillIndex = -1
 
bool m_layingOut = false
 
bool m_ignoreNextLayoutRequest = false
 
bool m_resizing = false
 
- Public Attributes inherited from QQuickContainerPrivate
bool hasContentWidth = false
 
bool hasContentHeight = false
 
qreal contentWidth = 0
 
qreal contentHeight = 0
 
QObjectList contentData
 
QQmlObjectModelcontentModel = nullptr
 
qsizetype currentIndex = -1
 
bool updatingCurrent = false
 
QQuickItemPrivate::ChangeTypes changeTypes = Destroyed | Parent | SiblingOrder
 
- Public Attributes inherited from QQuickControlPrivate
QLazilyAllocated< ExtraDataextra
 
bool hasHorizontalPadding = false
 
bool hasVerticalPadding = false
 
bool hasLocale = false
 
bool wheelEnabled = false
 
bool resizingBackground = false
 
int touchId = -1
 
qreal padding = 0
 
qreal horizontalPadding = 0
 
qreal verticalPadding = 0
 
qreal implicitContentWidth = 0
 
qreal implicitContentHeight = 0
 
qreal spacing = 0
 
QLocale locale
 
QFont resolvedFont
 
QQuickDeferredPointer< QQuickItembackground
 
QQuickDeferredPointer< QQuickItemcontentItem
 
- Public Attributes inherited from QQuickItemPrivate
QLazilyAllocated< ExtraData, ExtraDataTags > extra
 
QQuickAnchors_anchors
 
QVector< QQuickItemPrivate::ChangeListenerchangeListeners
 
QQuickStateGroup_stateGroup
 
quint32 flags:7
 
quint32 widthValidFlag:1
 
quint32 heightValidFlag:1
 
quint32 componentComplete:1
 
quint32 keepMouse:1
 
quint32 keepTouch:1
 
quint32 hoverEnabled:1
 
quint32 smooth:1
 
quint32 antialiasing:1
 
quint32 focus:1
 
quint32 activeFocus:1
 
quint32 notifiedFocus:1
 
quint32 notifiedActiveFocus:1
 
quint32 filtersChildMouseEvents:1
 
quint32 explicitVisible:1
 
quint32 effectiveVisible:1
 
quint32 explicitEnable:1
 
quint32 effectiveEnable:1
 
quint32 polishScheduled:1
 
quint32 inheritedLayoutMirror:1
 
quint32 effectiveLayoutMirror:1
 
quint32 isMirrorImplicit:1
 
quint32 inheritMirrorFromParent:1
 
quint32 inheritMirrorFromItem:1
 
quint32 isAccessible:1
 
quint32 culled:1
 
quint32 hasCursor:1
 
quint32 subtreeCursorEnabled:1
 
quint32 subtreeHoverEnabled:1
 
quint32 activeFocusOnTab:1
 
quint32 implicitAntialiasing:1
 
quint32 antialiasingValid:1
 
quint32 isTabFence:1
 
quint32 replayingPressEvent:1
 
quint32 touchEnabled:1
 
quint32 hasCursorHandler:1
 
quint32 maybeHasSubsceneDeliveryAgent:1
 
quint32 subtreeTransformChangedEnabled:1
 
quint32 inDestructor:1
 
quint32 focusReason:4
 
quint32 focusPolicy:4
 
quint32 dirtyAttributes
 
QQuickItemnextDirtyItem
 
QQuickItem ** prevDirtyItem
 
QQuickWindowwindow
 
int windowRefCount
 
QQuickItemparentItem
 
QList< QQuickItem * > childItems
 
QList< QQuickItem * > * sortedChildItems
 
QPointer< QQuickItemsubFocusItem
 
qreal implicitWidth
 
qreal implicitHeight
 
qreal baselineOffset
 
QList< QQuickTransform * > transforms
 
QSGTransformNodeitemNodeInstance
 
QSGNodepaintNode
 
QLayoutPolicy szPolicy
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QQuickControlPrivate
enum class  UnhideVisibility { Show , Hide }
 
- Public Types inherited from QQuickItemPrivate
enum  ChangeType {
  Geometry = 0x01 , SiblingOrder = 0x02 , Visibility = 0x04 , Opacity = 0x08 ,
  Destroyed = 0x10 , Parent = 0x20 , Children = 0x40 , Rotation = 0x80 ,
  ImplicitWidth = 0x100 , ImplicitHeight = 0x200 , Enabled = 0x400 , Focus = 0x800 ,
  AllChanges = 0xFFFFFFFF
}
 
enum  ExtraDataTag { NoTag = 0x1 , LeftMouseButtonAccepted = 0x2 }
 
enum  DirtyType {
  TransformOrigin = 0x00000001 , Transform = 0x00000002 , BasicTransform = 0x00000004 , Position = 0x00000008 ,
  Size = 0x00000010 , ZValue = 0x00000020 , Content = 0x00000040 , Smooth = 0x00000080 ,
  OpacityValue = 0x00000100 , ChildrenChanged = 0x00000200 , ChildrenStackingChanged = 0x00000400 , ParentChanged = 0x00000800 ,
  Clip = 0x00001000 , Window = 0x00002000 , EffectReference = 0x00008000 , Visible = 0x00010000 ,
  HideReference = 0x00020000 , Antialiasing = 0x00040000 , TransformUpdateMask , ComplexTransformUpdateMask = Transform | Window ,
  ContentUpdateMask = Size | Content | Smooth | Window | Antialiasing , ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window
}
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Attributes inherited from QQuickControlPrivate
static const ChangeTypes ImplicitSizeChanges = QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight | QQuickItemPrivate::Destroyed
 Abstract base type providing functionality common to all controls.
 
- Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >
void setCurrentColorGroup ()
 

Detailed Description

Definition at line 26 of file qquicksplitview_p_p.h.

Member Function Documentation

◆ accumulatedSize()

qreal QQuickSplitViewPrivate::accumulatedSize ( int firstIndex,
int lastIndex ) const

Definition at line 820 of file qquicksplitview.cpp.

References QList< T >::at(), QQuickContainerPrivate::contentModel, QQuickSplitViewAttachedPrivate::get(), i, isHorizontal(), QGraphicsItem::isVisible(), item, m_fillIndex, m_handleItems, QQmlObjectModel::object, qobject_cast< QQuickItem * >(), and QQuickItem::width.

Referenced by layoutResizeSplitItems().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createHandleItem()

void QQuickSplitViewPrivate::createHandleItem ( int index)

Definition at line 772 of file qquicksplitview.cpp.

References QQmlComponent::beginCreate(), QQmlComponent::completeCreate(), QQuickContainerPrivate::contentModel, context, QQmlObjectModel::count(), QQmlComponent::creationContext(), QList< T >::insert(), Qt::LeftButton, m_handle, m_handleItems, qCDebug, qmlContext(), qobject_cast< QQuickItem * >(), and resizeHandle().

Referenced by createHandles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createHandles()

void QQuickSplitViewPrivate::createHandles ( )

Definition at line 757 of file qquicksplitview.cpp.

References QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), createHandleItem(), i, m_handle, m_handleItems, Q_ASSERT, qCDebug, and QList< T >::reserve().

+ Here is the call graph for this function:

◆ destroyHandles()

void QQuickSplitViewPrivate::destroyHandles ( )

Definition at line 916 of file qquicksplitview.cpp.

References QList< T >::clear(), m_handleItems, qCDebug, qDeleteAll(), and QList< T >::size().

+ Here is the call graph for this function:

◆ effectiveSizeData()

QQuickSplitViewPrivate::EffectiveSizeData QQuickSplitViewPrivate::effectiveSizeData ( const QQuickItemPrivate * itemPrivate,
const QQuickSplitViewAttached * attached ) const

Definition at line 893 of file qquicksplitview.cpp.

References QQuickItemPrivate::data(), effectiveMaximumHeight(), effectiveMaximumWidth(), effectiveMinimumHeight(), effectiveMinimumWidth(), effectivePreferredHeight(), effectivePreferredWidth(), and QQuickSplitViewAttachedPrivate::get().

Referenced by layoutPositionItems(), layoutResizeFillItem(), layoutResizeSplitItems(), and limitAndApplySizes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get()

QQuickSplitViewPrivate * QQuickSplitViewPrivate::get ( QQuickSplitView * splitView)
static

Definition at line 1156 of file qquicksplitview.cpp.

Referenced by QQuickSplitViewAttachedPrivate::requestLayoutView(), QQuickSplitViewAttached::setFillHeight(), QQuickSplitViewAttached::setFillWidth(), QQuickSplitViewAttached::setPreferredHeight(), and QQuickSplitViewAttached::setPreferredWidth().

+ Here is the caller graph for this function:

◆ getContentItem()

QQuickItem * QQuickSplitViewPrivate::getContentItem ( )
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 1020 of file qquicksplitview.cpp.

References QQuickControlPrivate::getContentItem(), and item.

+ Here is the call graph for this function:

◆ handleIndexForSplitIndex()

int QQuickSplitViewPrivate::handleIndexForSplitIndex ( int splitIndex) const

Definition at line 907 of file qquicksplitview.cpp.

References QQuickContainerPrivate::contentModel, and QQmlObjectModel::count().

Referenced by itemVisibilityChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleMove()

bool QQuickSplitViewPrivate::handleMove ( const QPointF & point,
ulong timestamp )
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 1081 of file qquicksplitview.cpp.

References QQuickControlPrivate::handleMove(), m_mousePos, m_pressedHandleIndex, and updatePolish().

+ Here is the call graph for this function:

◆ handlePress()

◆ handleRelease()

bool QQuickSplitViewPrivate::handleRelease ( const QPointF & point,
ulong timestamp )
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 1094 of file qquicksplitview.cpp.

References QList< T >::at(), QQuickSplitHandleAttachedPrivate::get(), QQuickControlPrivate::handleRelease(), m_handleItems, m_handlePosBeforePress, m_leftOrTopItemSizeBeforePress, m_mousePos, m_pressedHandleIndex, m_pressPos, m_rightOrBottomItemSizeBeforePress, and setResizing().

+ Here is the call graph for this function:

◆ isHorizontal()

bool QQuickSplitViewPrivate::isHorizontal ( ) const

Definition at line 1015 of file qquicksplitview.cpp.

References Qt::Horizontal, and m_orientation.

Referenced by accumulatedSize(), handlePress(), layout(), layoutPositionItems(), layoutResizeFillItem(), layoutResizeSplitItems(), limitAndApplySizes(), and resizeHandle().

+ Here is the caller graph for this function:

◆ itemImplicitHeightChanged()

void QQuickSplitViewPrivate::itemImplicitHeightChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 1146 of file qquicksplitview.cpp.

References requestLayout().

+ Here is the call graph for this function:

◆ itemImplicitWidthChanged()

void QQuickSplitViewPrivate::itemImplicitWidthChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 1141 of file qquicksplitview.cpp.

References requestLayout().

+ Here is the call graph for this function:

◆ itemVisibilityChanged()

void QQuickSplitViewPrivate::itemVisibilityChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 1116 of file qquicksplitview.cpp.

References QList< T >::at(), QQuickContainerPrivate::contentModel, handleIndexForSplitIndex(), QQmlObjectModel::indexOf(), QGraphicsItem::isVisible(), item, m_handleItems, Q_ASSERT, qCDebug, requestLayout(), QQuickItem::setVisible(), updateFillIndex(), and updateHandleVisibilities().

+ Here is the call graph for this function:

◆ layout()

void QQuickSplitViewPrivate::layout ( )

Definition at line 699 of file qquicksplitview.cpp.

References arg, QQuickItemPrivate::componentComplete, QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), QString::fromLatin1(), isHorizontal(), layoutPositionItems(), layoutResizeFillItem(), layoutResizeSplitItems(), limitAndApplySizes(), m_fillIndex, m_handle, m_handleItems, m_layingOut, m_layoutData, QQmlObjectModel::object, Q_ASSERT_X, Q_FUNC_INFO, qCDebug, qobject_cast< QQuickItem * >(), qPrintable, and QList< T >::size().

Referenced by updatePolish().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layoutPositionItems()

void QQuickSplitViewPrivate::layoutPositionItems ( const QQuickItem * fillItem)

Definition at line 618 of file qquicksplitview.cpp.

References QList< T >::at(), QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), effectiveSizeData(), QQuickItemPrivate::get(), i, isHorizontal(), QGraphicsItem::isVisible(), item, m_fillIndex, m_handle, m_handleItems, QQmlObjectModel::object, Q_UNLIKELY, qCDebug, qobject_cast< QQuickItem * >(), QGraphicsItem::setX(), QQuickItem::setX(), and QGraphicsItem::setY().

Referenced by layout().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layoutResizeFillItem()

void QQuickSplitViewPrivate::layoutResizeFillItem ( QQuickItem * fillItem,
qreal & usedWidth,
qreal & usedHeight,
int indexBeingResizedDueToDrag )

Definition at line 484 of file qquicksplitview.cpp.

References effectiveSizeData(), QQuickItemPrivate::get(), QQuickSplitViewPrivate::LayoutData::height, isHorizontal(), m_fillIndex, m_layoutData, qBound(), qCDebug, and QQuickSplitViewPrivate::LayoutData::width.

Referenced by layout().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layoutResizeSplitItems()

void QQuickSplitViewPrivate::layoutResizeSplitItems ( qreal & usedWidth,
qreal & usedHeight,
int & indexBeingResizedDueToDrag )

◆ limitAndApplySizes()

void QQuickSplitViewPrivate::limitAndApplySizes ( qreal usedWidth,
qreal usedHeight )

Definition at line 531 of file qquicksplitview.cpp.

References QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), effectiveSizeData(), QQuickItemPrivate::get(), QQuickSplitViewPrivate::LayoutData::height, isHorizontal(), QGraphicsItem::isVisible(), item, m_fillIndex, m_ignoreNextLayoutRequest, m_layoutData, QQmlObjectModel::object, qobject_cast< QQuickItem * >(), QQuickSplitViewAttached::setPreferredHeight(), QQuickSplitViewAttached::setPreferredWidth(), QQuickSplitViewPrivate::LayoutData::wasResizedByHandle, and QQuickSplitViewPrivate::LayoutData::width.

Referenced by layout().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeExcessHandles()

void QQuickSplitViewPrivate::removeExcessHandles ( )

Definition at line 810 of file qquicksplitview.cpp.

References QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), m_handleItems, qCDebug, qMax(), QList< T >::size(), and QList< T >::takeLast().

+ Here is the call graph for this function:

◆ requestLayout()

void QQuickSplitViewPrivate::requestLayout ( )

Definition at line 680 of file qquicksplitview.cpp.

Referenced by itemImplicitHeightChanged(), itemImplicitWidthChanged(), and itemVisibilityChanged().

+ Here is the caller graph for this function:

◆ resizeHandle()

void QQuickSplitViewPrivate::resizeHandle ( QQuickItem * handleItem)

Definition at line 923 of file qquicksplitview.cpp.

References isHorizontal().

Referenced by createHandleItem(), and resizeHandles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resizeHandles()

void QQuickSplitViewPrivate::resizeHandles ( )

Definition at line 930 of file qquicksplitview.cpp.

References m_handleItems, and resizeHandle().

+ Here is the call graph for this function:

◆ setResizing()

void QQuickSplitViewPrivate::setResizing ( bool resizing)

Definition at line 1005 of file qquicksplitview.cpp.

References emit, and m_resizing.

Referenced by handlePress(), and handleRelease().

+ Here is the caller graph for this function:

◆ updateFillIndex()

QT_BEGIN_NAMESPACE void QQuickSplitViewPrivate::updateFillIndex ( )

Lays out items with a draggable splitter between each item.

\qmltype SplitView
\inherits Container

! \instantiates QQuickSplitView \inqmlmodule QtQuick.Controls

Since
5.13

SplitView is a control that lays out items horizontally or vertically with a draggable splitter between each item.

SplitView supports the following attached properties on items it manages:

\list

  • \l{minimumWidth}{SplitView.minimumWidth}
  • \l{minimumHeight}{SplitView.minimumHeight}
  • \l{preferredWidth}{SplitView.preferredWidth}
  • \l{preferredHeight}{SplitView.preferredHeight}
  • \l{maximumWidth}{SplitView.maximumWidth}
  • \l{maximumHeight}{SplitView.maximumHeight}
  • \l{fillWidth}{SplitView.fillWidth} (true for only one child)
  • \l{fillHeight}{SplitView.fillHeight} (true for only one child) \endlist

In addition, each handle has the following read-only attached properties:

\list

  • \l{SplitHandle::hovered}{SplitHandle.hovered}
  • \l{SplitHandle::pressed}{SplitHandle.pressed} \endlist
Note
Handles should be purely visual and not handle events, as it can interfere with their hovered and pressed states.

The preferred size of items in a SplitView can be specified via \l{Item::}{implicitWidth} and \l{Item::}{implicitHeight} or SplitView.preferredWidth and SplitView.preferredHeight:

SplitView {
Item {
SplitView.preferredWidth: 50
}
// ...
}
Definition lalr.h:84
QObject * parent
Definition qobject.h:73
QQuickItem * fill
QQuickAnchors * anchors() const
\qmlpropertygroup QtQuick::Item::anchors \qmlproperty AnchorLine QtQuick::Item::anchors....

For a horizontal SplitView, it's not necessary to specify the preferred height of each item, as they will be resized to the height of the view. This applies in reverse for vertical views.

When a split handle is dragged, the SplitView.preferredWidth or SplitView.preferredHeight property is overwritten, depending on the \l orientation of the view.

To limit the size of items in a horizontal view, use the following properties:

SplitView {
Item {
SplitView.minimumWidth: 25
SplitView.preferredWidth: 50
SplitView.maximumWidth: 100
}
// ...
}

To limit the size of items in a vertical view, use the following properties:

SplitView {
orientation: Qt.Vertical
Item {
SplitView.minimumHeight: 25
SplitView.preferredHeight: 50
SplitView.maximumHeight: 100
}
// ...
}
Definition qcompare.h:63

There will always be one item (the fill item) in the SplitView that has SplitView.fillWidth set to true (or SplitView.fillHeight, if \l orientation is Qt.Vertical). This means that the item will get all leftover space when other items have been laid out. By default, the last visible child of the SplitView will have this set, but it can be changed by explicitly setting fillWidth to true on another item.

A handle can belong to the item either on the left or top side, or on the right or bottom side:

\list

  • If the fill item is to the right: the handle belongs to the left item.
  • If the fill item is on the left: the handle belongs to the right item. \endlist

To create a SplitView with three items, and let the center item get superfluous space, one could do the following:

SplitView {
orientation: Qt.Horizontal
Rectangle {
SplitView.maximumWidth: 400
color: "lightblue"
Label {
text: "View 1"
}
}
Rectangle {
id: centerItem
SplitView.minimumWidth: 50
SplitView.fillWidth: true
color: "lightgray"
Label {
text: "View 2"
}
}
Rectangle {
color: "lightgreen"
Label {
text: "View 3"
}
}
}
QQuickItem * centerIn
QString text
GLenum GLuint id
[7]
GLuint color
[2]

Definition at line 231 of file qquicksplitview.cpp.

References QQuickSplitViewAttached::fillHeight, QQuickSplitViewAttached::fillWidth, i, QGraphicsItem::isVisible(), item, qCDebug, and qobject_cast< QQuickItem * >().

Referenced by itemVisibilityChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateHandleVisibilities()

void QQuickSplitViewPrivate::updateHandleVisibilities ( )

Definition at line 943 of file qquicksplitview.cpp.

References QList< T >::at(), QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), i, QList< T >::isEmpty(), QGraphicsItem::isVisible(), item, m_handleItems, QQmlObjectModel::object, qCDebug, qobject_cast< QQuickItem * >(), and QQuickItem::setVisible().

Referenced by itemVisibilityChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateHoveredHandle()

void QQuickSplitViewPrivate::updateHoveredHandle ( QQuickItem * hoveredItem)

Definition at line 977 of file qquicksplitview.cpp.

References QList< T >::at(), QQuickSplitHandleAttachedPrivate::get(), QListSpecialMethodsBase< T >::indexOf(), m_handleItems, m_hoveredHandleIndex, and qCDebug.

+ Here is the call graph for this function:

◆ updatePolish()

void QQuickSplitViewPrivate::updatePolish ( )
overridevirtual

Reimplemented from QQuickItemPrivate.

Definition at line 1151 of file qquicksplitview.cpp.

References layout().

Referenced by handleMove().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_fillIndex

int QQuickSplitViewPrivate::m_fillIndex = -1

◆ m_handle

QQmlComponent* QQuickSplitViewPrivate::m_handle = nullptr

◆ m_handleItems

◆ m_handlePosBeforePress

QPointF QQuickSplitViewPrivate::m_handlePosBeforePress

Definition at line 97 of file qquicksplitview_p_p.h.

Referenced by handlePress(), handleRelease(), and layoutResizeSplitItems().

◆ m_hoveredHandleIndex

int QQuickSplitViewPrivate::m_hoveredHandleIndex = -1

Definition at line 92 of file qquicksplitview_p_p.h.

Referenced by updateHoveredHandle().

◆ m_ignoreNextLayoutRequest

bool QQuickSplitViewPrivate::m_ignoreNextLayoutRequest = false

Definition at line 102 of file qquicksplitview_p_p.h.

Referenced by limitAndApplySizes().

◆ m_layingOut

bool QQuickSplitViewPrivate::m_layingOut = false

Definition at line 101 of file qquicksplitview_p_p.h.

Referenced by layout().

◆ m_layoutData

QHash<QQuickItem*, LayoutData> QQuickSplitViewPrivate::m_layoutData

◆ m_leftOrTopItemSizeBeforePress

qreal QQuickSplitViewPrivate::m_leftOrTopItemSizeBeforePress = 0.0

Definition at line 98 of file qquicksplitview_p_p.h.

Referenced by handlePress(), and handleRelease().

◆ m_mousePos

QPointF QQuickSplitViewPrivate::m_mousePos

◆ m_nextVisibleIndexAfterPressedHandle

int QQuickSplitViewPrivate::m_nextVisibleIndexAfterPressedHandle = -1

Definition at line 94 of file qquicksplitview_p_p.h.

Referenced by handlePress(), and layoutResizeSplitItems().

◆ m_orientation

Qt::Orientation QQuickSplitViewPrivate::m_orientation = Qt::Horizontal

Definition at line 88 of file qquicksplitview_p_p.h.

Referenced by handlePress(), and isHorizontal().

◆ m_pressedHandleIndex

int QQuickSplitViewPrivate::m_pressedHandleIndex = -1

◆ m_pressPos

QPointF QQuickSplitViewPrivate::m_pressPos

Definition at line 95 of file qquicksplitview_p_p.h.

Referenced by handlePress(), handleRelease(), and layoutResizeSplitItems().

◆ m_resizing

bool QQuickSplitViewPrivate::m_resizing = false

Definition at line 103 of file qquicksplitview_p_p.h.

Referenced by setResizing().

◆ m_rightOrBottomItemSizeBeforePress

qreal QQuickSplitViewPrivate::m_rightOrBottomItemSizeBeforePress = 0.0

Definition at line 99 of file qquicksplitview_p_p.h.

Referenced by handlePress(), and handleRelease().


The documentation for this class was generated from the following files: