Patchwork Qt embedded, touchscreens, and cursors

login
register
mail settings
Submitter Steve Sakoman
Date June 27, 2013, 12:56 p.m.
Message ID <CAGDS+nnLHmxBTtJ4tqQEFPmkD-4Nz9HHvBxBB-RyfHOhQy5ebA@mail.gmail.com>
Download mbox | patch
Permalink /patch/52455/
State New
Headers show

Comments

Steve Sakoman - June 27, 2013, 12:56 p.m.
On Thu, Jun 27, 2013 at 1:03 AM, Eric BĂ©nard <eric@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:

Patch

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);
 }