[OE-core] Qt embedded, touchscreens, and cursors

Steve Sakoman sakoman at gmail.com
Thu Jun 27 12:56:55 UTC 2013


On Thu, Jun 27, 2013 at 1:03 AM, Eric Bénard <eric at eukrea.com> wrote:

> IIRC you can hack this in
> qwscursor_qws.cpp
> around "// default cursor"
> you change ArrowCursor to BlankCursor
> (sorry no clean patch for that ATM).

Hi Eric,

That is exactly what I ended up doing.  The -no-feature-CURSOR
approach caused too many issues, i.e. breakage in demos, samples, and
tools.

For the record, here is the patch I used:

diff --git a/src/gui/embedded/qwscursor_qws.cpp
b/src/gui/embedded/qwscursor_qws.cpp
index 9e8c235..0ff0dc3 100644
--- a/src/gui/embedded/qwscursor_qws.cpp
+++ b/src/gui/embedded/qwscursor_qws.cpp
@@ -344,7 +344,7 @@ void QWSServerPrivate::initializeCursor()

     // default cursor
     cursor = 0;
-    setCursor(QWSCursor::systemCursor(Qt::ArrowCursor));
+    setCursor(QWSCursor::systemCursor(Qt::BlankCursor));
 #endif
     q->sendMouseEvent(QPoint(swidth/2, sheight/2), 0);
 }



More information about the Openembedded-core mailing list