The cursor was not refreshed when the window under xwayland was created
#include "mainwindow.h" #include
int main(int argc, char *argv[]) {
qputenv("QT_QPA_PLATFORM", "xcb");
QApplication a(argc, argv);
MainWindow w;
w.showMaximized();
qApp->setOverrideCursor(Qt::CrossCursor);
return a.exec();
}
When you run the demo program on the terminal, the cursor is in the current state. After running the program, the mouse shape is not refreshed. You need to move the mouse to refresh it.
debian 11 kwin:5.27.2 Qt 5.15.8