Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::anonymous_namespace{quickintegration.cpp} Namespace Reference

Classes

class  QuickIntegration
 GuiIntegration for QQuickWindow and QQuickItem. More...

Functions

QList< QQuickItem * > paintOrder (const QQuickItem *parent)
 parent's child items in paint order: by z, then in childItems() order.
QQuickItem * deepestItemAt (QQuickItem *item, const QPointF &scenePos)
 Topmost visible item containing scenePos, depth first in paint order.
QQuickItem * itemFrom (QObject *view, const char *name, const QVariant &arg)
 Calls view's invokable name(arg) returning a QQuickItem*, converting arg to the parameter type (an int for ListView, a QModelIndex for TableView).
void positionAt (QObject *view, const QVariant &index, bool table)
 Calls view's positionViewAtIndex(index, Contain) so the cell is visible.
QJsonObject rectJson (const QRectF &r)
 {"x", "y", "width", "height"}.
QJsonObject anchorsJson (const QQuickItem *item)
 The anchors set on item, by name (QQuickAnchors is private API, read as properties).
QJsonArray itemsAbove (const QQuickItem *item)
 Visible items stacked above item (later siblings, or higher z) that overlap it.
QJsonObject clipJson (const QQuickItem *item)
 The nearest ancestor with clip set, and how much of item it cuts off.
QJsonArray itemNotes (const QQuickItem *item, const QJsonObject &clip, const QJsonArray &above)
 Notes that explain an item's size and visibility.
QMarginsF backgroundAllowance (const QQuickItem *item)
 How far a Control's background may extend past the control: its negative insets.
QStringList anchorCauses (const QQuickItem *item)
 Negative anchor margins on item, e.g. "anchors.bottomMargin: -12".
bool looksLikeDecoration (const QQuickItem *item)
 Whether item looks like a decoration: no children, no text, no input.
QRectF globalRect (const QQuickItem *item)
 item's rectangle in global coordinates.
bool isAtOrBelow (const QQuickItem *item, const QObject *root)
 Whether item is root or below it (root may be a window or an item).
QList< OpenPopup > quickPopups (QObject *root)
 The open Qt Quick Controls popups whose parent item is root or below it.
void collectMovingFlickables (QQuickItem *item, QObjectList *out)
 Adds the Flickables (ListView, ScrollView, ...) at or below item that are moving.
QStringList qmlSourceLines (const QObject *object)
 object_inspect's extra line for objects declared in QML: their file and id.

Variables

constexpr int kItemViewContain = 4
 QQuickItemView::Contain (ListView, GridView): a PositionMode value.
constexpr int kTableViewContain = 0x2000
 QQuickTableView::Contain: TableView's PositionModeFlag uses Qt::Alignment values (4 would be AlignHCenter there, which only moves horizontally).

Function Documentation

◆ paintOrder()

QList< QQuickItem * > Sonde::anonymous_namespace{quickintegration.cpp}::paintOrder ( const QQuickItem * parent)

parent's child items in paint order: by z, then in childItems() order.

childItems() alone is not paint order: a control's background has z -1 but is often its last child, so it would look as if it were drawn over the content.