Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
src_corelib_animation_qvariantanimation.cpp
Go to the documentation of this file.
1
// Copyright (C) 2018 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5
QVariant
myColorInterpolator
(
const
QColor
&
start
,
const
QColor
&
end
,
qreal
progress)
6
{
7
...
8
return
QColor
(...);
9
}
10
...
11
qRegisterAnimationInterpolator<QColor>
(
myColorInterpolator
);
13
15
QVariant
myInterpolator
(
const
QVariant
&from,
const
QVariant
&to,
qreal
progress);
QColor
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition
qcolor.h:31
QVariant
\inmodule QtCore
Definition
qvariant.h:64
end
GLuint GLuint end
Definition
qopengles2ext.h:354
start
GLuint start
Definition
qopengles2ext.h:354
qreal
double qreal
Definition
qtypes.h:92
qRegisterAnimationInterpolator< QColor >
qRegisterAnimationInterpolator< QColor >(myColorInterpolator)
myInterpolator
QVariant myInterpolator(const QVariant &from, const QVariant &to, qreal progress)
[0]
myColorInterpolator
QVariant myColorInterpolator(const QColor &start, const QColor &end, qreal progress)
[0]
Definition
src_corelib_animation_qvariantanimation.cpp:5
qtbase
src
corelib
doc
snippets
code
src_corelib_animation_qvariantanimation.cpp
Generated by
1.9.7