Originally Posted by
cic1988
No... the overridecursor works only when there is QWindow created from the source code in Qt 5.3.
I don't see any error or warning when doing it in a minimal test program
#include <QtGui>
int main(int argc, char **argv)
{
QGuiApplication app(argc, argv);
QGuiApplication
::setOverrideCursor(QCursor(Qt
::ForbiddenCursor));
qDebug() << "override cursor is" << QGuiApplication::overrideCursor()->shape() << "forbidden is" << Qt::ForbiddenCursor;
}
#include <QtGui>
int main(int argc, char **argv)
{
QGuiApplication app(argc, argv);
QGuiApplication::setOverrideCursor(QCursor(Qt::ForbiddenCursor));
qDebug() << "override cursor is" << QGuiApplication::overrideCursor()->shape() << "forbidden is" << Qt::ForbiddenCursor;
}
To copy to clipboard, switch view to plain text mode
and the output suggest it worked
Cheers,
_
Bookmarks