2018年3月20日

Item

モジュール

QtQuick 2.11

クラス継承

QQuickItem → QObject

プロパティー

activeFocus: bool = false readonly final
activeFocusOnTab: bool = false final
anchors: QQuickAnchors* = QQuickAnchors(this) readonly final
antialiasing: bool = false
children: list<Item> = [] readonly
childrenRect: rect = Qt.rect(0, 0, 0, 0) readonly final
clip: bool = false
containmentMask: QtObject = null
data: list<QtObject> = [] readonly default
enabled: bool = true
focus: bool = false final
height: real = 0 final
implicitHeight: real = 0
implicitWidth: real = 0
layer: QQuickItemLayer* = QQuickItemLayer(this) readonly final
opacity: real = 1 final
parent: Item = null final
resources: list<QtObject> = [] readonly
rotation: real = 0
scale: real = 1
smooth: bool = true
state: string = ""
states: list<State> = [] readonly
transform: list<Transform> = [] readonly final
transitions: Property<Transition> = [] readonly
transformOrigin: TransformOrigin = Item.Center
transformOriginPoint: point = 中心点 readonly
visible: bool = true final
visibleChildren: list<Item> = [] readonly
width: real = 0 final
x: real = 0 final
y: real = 0 final
z: real = 0 final

baseline: QQuickAnchorLine = QQuickAnchors::BaselineAnchor readonly final
baselineOffset: real = 0
bottom: QQuickAnchorLine = QQuickAnchors::BottomAnchor readonly final
horizontalCenter: QQuickAnchorLine = QQuickAnchors::HCenterAnchor readonly final
left: QQuickAnchorLine = QQuickAnchors::LeftAnchor readonly final
right: QQuickAnchorLine = QQuickAnchors::RightAnchor readonly final
top: QQuickAnchorLine = QQuickAnchors::TopAnchor readonly final
verticalCenter: QQuickAnchorLine = QQuickAnchors::VCenterAnchor readonly final

シグナル

windowChanged(QQuickWindow* window)

activeFocusChanged(bool)
activeFocusOnTabChanged(bool)
antialiasingChanged(bool)
baselineOffsetChanged(real)
childrenChanged()
childrenRectChanged(rect)
clipChanged(bool)
containmentMaskChanged()
enabledChanged()
focusChanged(bool)
implicitHeightChanged()
implicitWidthChanged()
opacityChanged()
parentChanged(Item)
rotationChanged()
scaleChanged()
smoothChanged(bool)
stateChanged(string)
transformOriginChanged(TransformOrigin)
visibleChanged()
visibleChildrenChanged()
xChanged()
yChanged()
zChanged()
widthChanged()
heightChanged()

メソッド

Item childAt(real x, real y)
Item nextItemInFocusChain()
Item nextItemInFocusChain(bool forward)
bool contains(point point)
bool grabToImage(QJSValue callback)
bool grabToImage(QJSValue callback, size targetSize)
void forceActiveFocus()
void forceActiveFocus(Qt::FocusReason reason)
void mapFromGlobal(QQmlV4Function*)
void mapFromItem(QQmlV4Function*)
void mapToGlobal(QQmlV4Function*)
void mapToItem(QQmlV4Function*)

スロット

void update()

列挙

TransformOrigin
    TopLeft
    Top
    TopRight
    Left
    Center
    Right
    BottomLeft
    Bottom
    BottomRight

説明


プロパティーの説明

activeFocus: bool

activeFocusOnTab: bool

anchors: QQuickAnchors*

anchors を参照。

antialiasing: bool

children: list<Item>

childrenRect: rect

clip: bool

containmentMask: QtObject

Q_INVOKABLE QObject::contains(const QPoint& point) が実装されたマスクオブジェクトを設定する。Item.contains() で内部判定に用いられる。

MouseArea のマスク を参照。

data: list<QtObject>

enabled: bool

focus: bool

height: real

implicitHeight: real

implicitWidth: real

layer: QQuickItemLayer*

opacity: real

parent: Item

resources: list<QtObject>

rotation: real

scale: real

smooth: bool

state: string

states: list<State>

transform: list<Transform>

transitions: list<Transition>

transformOrigin: TransformOrigin

transformOriginPoint: point

visible: bool

visibleChildren: list<Item>

width: real

x: real

y: real

z: real


baseline: QQuickAnchorLine

baselineOffset: real

bottom: QQuickAnchorLine

horizontalCenter: QQuickAnchorLine

left: QQuickAnchorLine

right: QQuickAnchorLine

top: QQuickAnchorLine

verticalCenter: QQuickAnchorLine

シグナルの説明


メソッドの説明


スロットの説明


列挙の説明


注意


シグナルの仮引数が型のみで仮引数名が省略されているものはシグナルハンドラーで呼び出される処理に実引数が渡されるプロパティーはない。以下のようにすればシグナルの実引数を受け取れる。
smoothChanged.connect(function(arg) { ... });
QML の signal によるシグナル定義では、仮引数名なしの定義はできない。仮引数名のない シグナルは C++ で実装されている。

問題


Item のリファレンスに top、bottom、left、right、horizontalCenter、verticalCenter、baseline、transformOriginPoint の各プロパティー、windowChanged シグナルが記載されていない。

参考情報

Item QML Type

0 件のコメント:

コメントを投稿

注: コメントを投稿できるのは、このブログのメンバーだけです。