I wonder how to hide cursor in QML, QT 5.7.
I tried to use
QGuiApplication::setOverrideCursor(QCursor(Qt::BlankCursor));
and
app.setOverrideCursor( QCursor( Qt::BlankCursor ) );
But both doesn't work.
/home/QTProjects/main.cpp:13: error: invalid use of incomplete type 'class QCursor'
QGuiApplication::setOverrideCursor(QCursor(Qt::BlankCursor));
^
And if it possible can I hide cursor within QML not on C++ side.
#include <QCursor>so you can use your first code in yourmain.cpp- GrecKo