Doesn't work properly though. QTBUG-24566 filed for that.
Change-Id: I31a8184456add6060e65bf11323153dc7a80b306
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
{
QGuiApplication app(argc, argv);
- qmlRegisterType<Squircle>("QtQuick", 2, 0, "Squircle");
+ qmlRegisterType<Squircle>("OpenGLUnderQML", 2, 0, "Squircle");
QQuickView view;
view.setSource(QUrl("main.qml"));
****************************************************************************/
import QtQuick 2.0
+import OpenGLUnderQML 2.0
Item {
- width: 400
- height: 300
+ width: 320
+ height: 480
Squircle {
+ width: 320
+ height: 320
SequentialAnimation on t {
NumberAnimation { to: 1; duration: 2500; easing.type: Easing.InQuad }
NumberAnimation { to: 0; duration: 2500; easing.type: Easing.OutQuad }