diff --git a/QtScrcpy/QtScrcpy.pro b/QtScrcpy/QtScrcpy.pro
index ada28c1..5b39a93 100644
--- a/QtScrcpy/QtScrcpy.pro
+++ b/QtScrcpy/QtScrcpy.pro
@@ -5,7 +5,7 @@
#-------------------------------------------------
QT += core gui
-QT += network
+QT += network quickwidgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
diff --git a/QtScrcpy/qml/images/pinwheel.png b/QtScrcpy/qml/images/pinwheel.png
new file mode 100644
index 0000000..e70b977
Binary files /dev/null and b/QtScrcpy/qml/images/pinwheel.png differ
diff --git a/QtScrcpy/qml/pinwheel.qml b/QtScrcpy/qml/pinwheel.qml
new file mode 100644
index 0000000..61c328b
--- /dev/null
+++ b/QtScrcpy/qml/pinwheel.qml
@@ -0,0 +1,19 @@
+import QtQuick 2.5
+import QtGraphicalEffects 1.0
+Image {
+ Image {
+ id: wheel
+ anchors.centerIn: parent
+ source: "images/pinwheel.png"
+
+ RotationAnimation {
+ id:rotationAnimation
+ target: wheel
+ to:360000
+ direction: RotationAnimation.Clockwise
+ duration: 800000
+ }
+
+ onStatusChanged: if (wheel.status == Image.Ready) rotationAnimation.start()
+ }
+}
\ No newline at end of file
diff --git a/QtScrcpy/res.qrc b/QtScrcpy/res.qrc
index b0ce25b..1db306c 100644
--- a/QtScrcpy/res.qrc
+++ b/QtScrcpy/res.qrc
@@ -4,5 +4,7 @@
res/fontawesome-webfont.ttf
res/phone-h.png
res/phone-v.png
+ qml/pinwheel.qml
+ qml/images/pinwheel.png
diff --git a/QtScrcpy/videoform.cpp b/QtScrcpy/videoform.cpp
index a8b08d6..df5c826 100644
--- a/QtScrcpy/videoform.cpp
+++ b/QtScrcpy/videoform.cpp
@@ -7,6 +7,7 @@
#ifdef Q_OS_WIN32
#include
#endif
+#include
#include "videoform.h"
#include "ui_videoform.h"
@@ -19,7 +20,8 @@ VideoForm::VideoForm(const QString& serial, QWidget *parent) :
m_serial(serial)
{
ui->setupUi(this);
- setAttribute(Qt::WA_DeleteOnClose);
+
+ setAttribute(Qt::WA_DeleteOnClose);
QPixmap phone;
if (phone.load(":/res/phone.png")) {
@@ -116,6 +118,18 @@ VideoForm::VideoForm(const QString& serial, QWidget *parent) :
bool vertical = size().height() > size().width();
updateStyleSheet(vertical);
+ /*
+ ui->videoWidget->hide();
+ // qquickwidget
+ QQuickWidget* pinwheel = new QQuickWidget(this);
+ pinwheel->setObjectName(QString::fromUtf8("pinwheel"));
+ pinwheel->setAutoFillBackground(false);
+ pinwheel->setResizeMode(QQuickWidget::SizeRootObjectToView);
+ pinwheel->setSource(QUrl(QString::fromUtf8("qrc:/qml/pinwheel.qml")));
+ pinwheel->setClearColor(QColor(Qt::transparent));
+ pinwheel->setGeometry(ui->videoWidget->geometry());
+ pinwheel->show();
+ */
ToolForm* mw = new ToolForm(this, ToolForm::AP_OUTSIDE_RIGHT);
mw->move(pos().x() + geometry().width(), pos().y() + 30);
mw->show();