2018年4月29日

ParallelAnimation

モジュール

QtQuick 2.0

クラス継承

QQuickParallelAnimation → QQuickAnimationGroup (internal) → QQuickAbstractAnimationQObject

プロパティー

animations: list<Animation> = [] readonly default inherited

説明


アニメーションをグループ化し並列実行する。各アニメーションは animations プロパティーに設定する。アニメーションは個別に実行の開始と終了はできずグループ単位で実行の開始と終了をする。

プロパティーの説明

animations: list<Animation>

グループ化して並列実行するアニメーション。

問題


ParallelAnimation のリファレンスに animations プロパティーが記載されていない。

参考情報

2018年4月28日

Easing

クラス継承

QQmlEasingValueType

プロパティー

type: Easing::Type = Easing.Linear final
amplitude: real = 1 final
overshoot: real = 1.70158 final
period: real = 0.3 final
bezierCurve: QVariantList(real) = [] final

列挙

Type
        Linear = QEasingCurve::Linear
        InQuad = QEasingCurve::InQuad
        OutQuad = QEasingCurve::OutQuad
        InOutQuad = QEasingCurve::InOutQuad
        OutInQuad = QEasingCurve::OutInQuad
        InCubic = QEasingCurve::InCubic
        OutCubic = QEasingCurve::OutCubic
        InOutCubic = QEasingCurve::InOutCubic
        OutInCubic = QEasingCurve::OutInCubic
        InQuart = QEasingCurve::InQuart
        OutQuart = QEasingCurve::OutQuart
        InOutQuart = QEasingCurve::InOutQuart
        OutInQuart = QEasingCurve::OutInQuart
        InQuint = QEasingCurve::InQuint
        OutQuint = QEasingCurve::OutQuint
        InOutQuint = QEasingCurve::InOutQuint
        OutInQuint = QEasingCurve::OutInQuint
        InSine = QEasingCurve::InSine
        OutSine = QEasingCurve::OutSine
        InOutSine = QEasingCurve::InOutSine
        OutInSine = QEasingCurve::OutInSine
        InExpo = QEasingCurve::InExpo
        OutExpo = QEasingCurve::OutExpo
        InOutExpo = QEasingCurve::InOutExpo
        OutInExpo = QEasingCurve::OutInExpo
        InCirc = QEasingCurve::InCirc
        OutCirc = QEasingCurve::OutCirc
        InOutCirc = QEasingCurve::InOutCirc
        OutInCirc = QEasingCurve::OutInCirc
        InElastic = QEasingCurve::InElastic
        OutElastic = QEasingCurve::OutElastic
        InOutElastic = QEasingCurve::InOutElastic
        OutInElastic = QEasingCurve::OutInElastic
        InBack = QEasingCurve::InBack
        OutBack = QEasingCurve::OutBack
        InOutBack = QEasingCurve::InOutBack
        OutInBack = QEasingCurve::OutInBack
        InBounce = QEasingCurve::InBounce
        OutBounce = QEasingCurve::OutBounce
        InOutBounce = QEasingCurve::InOutBounce
        OutInBounce = QEasingCurve::OutInBounce
        InCurve = QEasingCurve::InCurve
        OutCurve = QEasingCurve::OutCurve
        SineCurve = QEasingCurve::SineCurve
        CosineCurve = QEasingCurve::CosineCurve
        Bezier = QEasingCurve::BezierSpline

説明


プロパティーの説明

type: Easing::Type

amplitude: real

overshoot: real

period: real

bezierCurve: QVariantList(real)

列挙の説明


注意


プロパティーの順序は説明文字列の要素順。

参考情報

easing
QEasingCurve Class

AnchorAnimation

モジュール

QtQuick 2.0

クラス継承

QQuickAnchorAnimation → QQuickAbstractAnimation (internal) → QObject

プロパティー

duration: int = 250
easing: QEasingCurve = QEasingCurve(QEasingCurve::Linear, amplitude = 1, overshoot = 1.70158, period = 0.3, bezierCurve = [])
targets: list<Item> = [] readonly

シグナル

durationChanged(int)
easingChanged(QEasingCurve)

説明


AnchorChanges によるアンカー変更時に Transition 中で使ってアニメーション効果を付ける。

サンプルコード anchored.qml を参照。

プロパティーの説明

duration: int

アニメーション継続時間、単位はミリ秒。

easing: QEasingCurve

Easing を参照。

targets: list<Item>

アニメーション効果を付けるビジュアルオブジェクトのリスト。指定しない場合は AnchorChanges でアンカーを変更するすべてのビジュアルオブジェクトがアニメーション効果の対象になる。

参考情報

Animation

モジュール

QtQuick 2.0

クラス継承

QQuickAbstractAnimation (internal) → QObject

プロパティー

alwaysRunToEnd: bool = false
loops: int = 1
paused: bool = false
running: bool = false

シグナル

started()
stopped()
alwaysRunToEndChanged(bool)
loopCountChanged(int)
runningChanged(bool)
pausedChanged(bool)

スロット

void complete()
void pause()
void restart()
void resume()
void start() default
void stop()

説明


タイプ階層
Animation
        AnchorAnimation
        Animator
        ParallelAnimation
        ParentAnimation
        PathAnimation
        PauseAnimation
        PropertyAction
        PropertyAnimation
                ColorAnimation
                NumberAnimation
                        SmoothedAnimation
                        SpringAnimation
                RotationAnimation
                Vector3dAnimation
        ScriptAction
        SequentialAnimation

プロパティーの説明

alwaysRunToEnd: bool

loops: int

paused: bool

running: bool

シグナルの説明

started()

stopped()

スロットの説明

void complete()

void pause()

void restart()

void resume()

void start()

void stop()

問題


Animation のリファレンスに start() がデフォルトメソッドであることが書かれていない。

参考情報

2018年4月27日

ItemSelectionModel

モジュール

QtQml.Models 2.2

クラス継承

QItemSelectionModel → QObject

プロパティー

currentIndex: QModelIndex = QModelIndex() readonly
hasSelection: bool = false readonly
model: QAbstractItemModel* = null
selection: QmlSequence(QItemSelection) = [] readonly
selectedIndexes: QmlSequence(QModelIndexList) = [] readonly

シグナル

currentChanged(QModelIndex current, QModelIndex previous)
currentColumnChanged(QModelIndex current, QModelIndex previous)
currentRowChanged(QModelIndex current, QModelIndex previous)
modelChanged(QAbstractItemModel* model)
selectionChanged(QItemSelection selected, QItemSelection deselected)

メソッド

bool columnIntersectsSelection(int column, QModelIndex parent)
bool isSelected(QModelIndex index)
bool isRowSelected(int row, QModelIndex parent)
bool isColumnSelected(int column, QModelIndex parent)
bool rowIntersectsSelection(int row, QModelIndex parent)
QModelIndexList selectedRows(int column = 0)
QModelIndexList selectedColumns(int row = 0)

スロット

void clear()
void clearCurrentIndex()
void clearSelection()
void reset()
void setCurrentIndex(QModelIndex index, QItemSelectionModel::SelectionFlags command)
void select(QModelIndex index, QItemSelectionModel::SelectionFlags command)
void select(QItemSelection selection, QItemSelectionModel::SelectionFlags command)

列挙フラグ

SelectionFlags
    NoUpdate
    Clear
    Select
    Deselect
    Toggle
    Current
    Rows
    Columns
    SelectCurrent
    ToggleCurrent
    ClearAndSelect

説明


プロパティーの説明

currentIndex: QModelIndex

hasSelection: bool

model: QAbstractItemModel*

selection: QmlSequence(QItemSelection)

selectedIndexes: QmlSequence(QModelIndexList)

シグナルの説明

currentChanged(QModelIndex current, QModelIndex previous)

currentColumnChanged(QModelIndex current, QModelIndex previous)

currentRowChanged(QModelIndex current, QModelIndex previous)

メソッドの説明

bool columnIntersectsSelection(int column, QModelIndex parent)

bool isSelected(QModelIndex index)

bool isRowSelected(int row, QModelIndex parent)

bool isColumnSelected(int column, QModelIndex parent)

bool rowIntersectsSelection(int row, QModelIndex parent)

QModelIndexList selectedRows(int column)

QModelIndexList selectedColumns(int row)

スロットの説明

void clear()

void clearCurrentIndex()

void clearSelection()

void reset()

void setCurrentIndex(QModelIndex index, QItemSelectionModel::SelectionFlags command)

void select(QModelIndex index, QItemSelectionModel::SelectionFlags command)

void select(QItemSelection selection, QItemSelectionModel::SelectionFlags command)

列挙フラグの説明


SelectionFlags
列挙値 説明
NoUpdate 0x0000 セレクション操作なし
Clear 0x0001
Select 0x0002
Deselect 0x0004
Toggle 0x0008
Current 0x0010
Rows 0x0020
Columns 0x0040
SelectCurrent Select | Current
ToggleCurrent Toggle | Current
ClearAndSelect Clear | Select

参考情報