8#include <QtCore/qbuffer.h>
9#include <QtCore/qdebug.h>
10#include <QtCore/qstring.h>
11#include <QtGui/qwindow.h>
13#include <emscripten/emscripten.h>
14#include <emscripten/bind.h>
75 auto cursorAsBase64 = cursorAsPng.toBase64();
78 QString(
"url(data:image/png;base64,%1) %2 %3, auto")
82 return encodedCursor.
toUtf8();
86 "New cursor type added, handle it");
87 qWarning() <<
"QWasmCursor: " << shape <<
" unsupported";
98 wasmWindow->setWindowCursor(windowCursor ? cursorToCss(windowCursor) :
"default");
\inmodule QtCore \reentrant
The QCursor class provides a mouse cursor with an arbitrary shape.
QPixmap pixmap() const
Returns the cursor pixmap.
Qt::CursorShape shape() const
Returns the cursor shape identifier.
QPoint hotSpot() const
Returns the cursor hot spot, or (0, 0) if it is one of the standard cursors.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString arg(qlonglong a, int fieldwidth=0, int base=10, QChar fillChar=u' ') const
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QByteArray toUtf8() const &
void changeCursor(QCursor *windowCursor, QWindow *window) override
This method is called by Qt whenever the cursor graphic should be changed.
Combined button and popup list for selecting options.