Re: [Interest] QTouchEvents correctly placed only when the windows is on the primary screen?

2013-09-26 Thread Andrea Franceschini
 Anyway, I think global touch coordinates should be w.r.t. the desktop, not 
 the screen.  If you want to simplify and say that tuio only permits mapping 
 the touch area to an entire screen, you can still offset the coordinates 
 according to the screen's position on the desktop.

This approach does make sense to me, but since we are talking within
Qt, can or does Qt do something like this behind the scenes? And by
that I mean in a cross-platform fashion without you having to notice
or bother too much (apart from some tiny bits of configuration, of
course, with which I'd be totally ok).

-- 
Andrea Franceschini
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QTouchEvents correctly placed only when the windows is on the primary screen?

2013-09-25 Thread Andrea Franceschini
Hi there.

I'm using qtuiotouch but this might be a more general issue I'm not
aware of. Basically my set-up is like this:

- primary screen: regular desktop screen;
- secondary screen: huge touch screen sending out TUIO messages.

I set up a small QGraphicsView/Scene example to figure out a few
things and then I noticed that I wasn't getting touch events if the GV
windows wasn't on the primary screen (no matter which one). So I
couldn't move the window on the secondary touch screen, go to full
screen, and do the touch-thing, but if I kept the window on the
primary screen (desktop) it would work as expected, meaning that the
TUIO messages got perfectly mapped to the GV/Scene.

Now, a temporary solution would be to make the touch screen my primary
screen, which is doable but highly annoying, especially since I'm
working on a Mac, I might need the menu bar some times, and the touch
screen lies horizontal on a table (not exactly visible from a sitting
position).

Ideas?

-- 
Andrea Franceschini
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTouchEvents correctly placed only when the windows is on the primary screen?

2013-09-25 Thread Casimiro, Daniel C CIV NUWC NWPT
Hi,

Well, the short answer is that qtuiotouch assumes that the touch screen is the 
primary (only) screen. There are two questions that need answers before I could 
support your configuration:

1. How to associate the TUIO device with the correct QScreen? (maybe 
QScreen::name and the TUIO device name)
2. How is QWindowSystemInterface::handleTouchEvent supposed to handle multiple 
screens?

~Dan

 -Original Message-
 From: interest-bounces+daniel.casimiro=navy@qt-project.org 
 [mailto:interest-bounces+daniel.casimiro=navy.mil@qt-
 project.org] On Behalf Of Andrea Franceschini
 Sent: Wednesday, September 25, 2013 12:06 PM
 To: interest@qt-project.org
 Subject: [Interest] QTouchEvents correctly placed only when the windows is on 
 the primary screen?
 
 Hi there.
 
 I'm using qtuiotouch but this might be a more general issue I'm not aware of. 
 Basically my set-up is like this:
 
 - primary screen: regular desktop screen;
 - secondary screen: huge touch screen sending out TUIO messages.
 
 I set up a small QGraphicsView/Scene example to figure out a few things and 
 then I noticed that I wasn't getting touch events if the
 GV windows wasn't on the primary screen (no matter which one). So I couldn't 
 move the window on the secondary touch screen, go
 to full screen, and do the touch-thing, but if I kept the window on the 
 primary screen (desktop) it would work as expected, meaning
 that the TUIO messages got perfectly mapped to the GV/Scene.
 
 Now, a temporary solution would be to make the touch screen my primary 
 screen, which is doable but highly annoying, especially
 since I'm working on a Mac, I might need the menu bar some times, and the 
 touch screen lies horizontal on a table (not exactly visible
 from a sitting position).
 
 Ideas?
 
 --
 Andrea Franceschini
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest


smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTouchEvents correctly placed only when the windows is on the primary screen?

2013-09-25 Thread Andrea Franceschini
2013/9/25 Casimiro, Daniel C CIV NUWC NWPT daniel.casim...@navy.mil:

 1. How to associate the TUIO device with the correct QScreen? (maybe 
 QScreen::name and the TUIO device name)
 2. How is QWindowSystemInterface::handleTouchEvent supposed to handle 
 multiple screens?

That's actually the same thing I was wondering. As for 1, I'd say that
sounds plausible, but is it feasible? As for 2, in my case I don't
need multiple touch screens, but I suppose that you could somehow
extend the approach from 1, maybe via on/off-line config?

-- 
Andrea Franceschini
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest