* Qt embedded, touchscreens, and cursors
@ 2013-06-25 16:34 Steve Sakoman
2013-06-27 8:03 ` Eric Bénard
0 siblings, 1 reply; 3+ messages in thread
From: Steve Sakoman @ 2013-06-25 16:34 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
I'm new to the Qt world, so perhaps this is a stupid question . . .
I'm helping a client create a custom layer for their touchscreen based
hardware and Qt applications.
They've decided to use Qt4e and we are including the stock danny qt4e
binaries in the image.
All works as desired with one exception: the Qt cursor appears at app
launch time with a green 16x16 background, converts to the app
background shortly thereafter, and then stays on the screen until the
first time you touch the screen, then disappears and stays gone.
Some quick googling indicates this is a common problem with touchsceen
Qt implementations and that there are no satisfactory runtime
solutions. The most often recommended solution is to disable the
cursor at build time with -no-feature-CURSOR added to the Qt config
options. This option is also claimed to give a significant
performance boost.
I tried adding a bbappend to add this option, but as some of the above
mentioned sources indicated the Qt build will fail unless you disable
demos, examples, and a couple of other build features. I started
going down this path but I suspect it will require changes to the base
Qte recipe.
Have others run into this issue? I suspect that most target hardware
for Yocto builds are touchscreen based, so this will likely come up
over and over again.
Any suggestions?
Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Qt embedded, touchscreens, and cursors
2013-06-25 16:34 Qt embedded, touchscreens, and cursors Steve Sakoman
@ 2013-06-27 8:03 ` Eric Bénard
2013-06-27 12:56 ` Steve Sakoman
0 siblings, 1 reply; 3+ messages in thread
From: Eric Bénard @ 2013-06-27 8:03 UTC (permalink / raw)
To: Steve Sakoman; +Cc: Patches and discussions about the oe-core layer
Hi Steve,
Le Tue, 25 Jun 2013 09:34:05 -0700,
Steve Sakoman <sakoman@gmail.com> a écrit :
> I'm new to the Qt world, so perhaps this is a stupid question . . .
>
> I'm helping a client create a custom layer for their touchscreen based
> hardware and Qt applications.
>
> They've decided to use Qt4e and we are including the stock danny qt4e
> binaries in the image.
>
> All works as desired with one exception: the Qt cursor appears at app
> launch time with a green 16x16 background, converts to the app
> background shortly thereafter, and then stays on the screen until the
> first time you touch the screen, then disappears and stays gone.
>
> Some quick googling indicates this is a common problem with touchsceen
> Qt implementations and that there are no satisfactory runtime
> solutions. The most often recommended solution is to disable the
> cursor at build time with -no-feature-CURSOR added to the Qt config
> options. This option is also claimed to give a significant
> performance boost.
>
> I tried adding a bbappend to add this option, but as some of the above
> mentioned sources indicated the Qt build will fail unless you disable
> demos, examples, and a couple of other build features. I started
> going down this path but I suspect it will require changes to the base
> Qte recipe.
>
> Have others run into this issue? I suspect that most target hardware
> for Yocto builds are touchscreen based, so this will likely come up
> over and over again.
>
> Any suggestions?
IIRC you can hack this in
qwscursor_qws.cpp
around "// default cursor"
you change ArrowCursor to BlankCursor
(sorry no clean patch for that ATM).
Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Qt embedded, touchscreens, and cursors
2013-06-27 8:03 ` Eric Bénard
@ 2013-06-27 12:56 ` Steve Sakoman
0 siblings, 0 replies; 3+ messages in thread
From: Steve Sakoman @ 2013-06-27 12:56 UTC (permalink / raw)
To: Eric Bénard; +Cc: Patches and discussions about the oe-core layer
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:
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);
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-27 12:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25 16:34 Qt embedded, touchscreens, and cursors Steve Sakoman
2013-06-27 8:03 ` Eric Bénard
2013-06-27 12:56 ` Steve Sakoman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.