触摸 QLineEdit 时如何停止显示临时光标?

How to stop a temporary cursor from showing up when touching QLineEdit?

在触摸屏应用程序上,有各种文本框 (QLineEdits)。 mouse/cursor 是隐藏的,但问题是用手指触摸以聚焦文本框会显示临时光标。请注意,这不是位于文本框中的闪烁光标。它似乎是临时出现但在几秒钟后消失的实际鼠标光标。有没有办法防止那个临时光标出现?

Jeremy 的回答对我有用。

QGuiApplication::setOverrideCursor(Qt::BlankCursor);