Hi Oli,

  I don’t see any new comments on the Qt bug related to multitouch events mentioned in our previous emails.  So probably nothing has changed with Qt 5.10 in this regard.  But that isn’t really the problem since as I said before I have a special C++ hack to work around the Qt problem.  The problem is lack of time to try this.  But I’ll put it on my list to weigh against the hundred other missing features.

  Although we briefly upgraded ChimeraX from Qt 5.9 to 5.10 it backfired a few weeks ago when it would not start on Linux due to a known Qt goof.  So we reverted to Qt 5.9 until that is fixed.

Tom



On May 1, 2018, at 3:55 PM, Oliver Clarke wrote:

Any chance that this situation has changed with the release of Qt 5.10 Tom? I know it is in some sense a niche functionality but personally it is one of the major obstacles to my use of chimeraX - I find manipulation much more awkward than using a properly configured trackpad with legacy Chimera.

Cheers
Oli

On Sep 15, 2017, at 4:50 PM, Tom Goddard  wrote:

Hi Edoardo,

We don’t have multitouch (2 and 3 finger drag) in ChimeraX currently.

A few years ago I used the Qt window toolkit to handle multitouch events. Qt 5.2(?) had multitouch disabled on Mac OS because it supposedly interfered with scrolling. I don't think I observed that scrolling problem. But I had to write some C++ code that called a native Mac OS method to get touch events, a pretty ugly hack to get it to work.

The current state in Qt 5.9 seems that multitouch events work with Qt widgets. But we need them to work on the graphics area which is a QWindow (for drawing OpenGL 3D graphics). The following Qt bug report (53874) from June 2016 indicates that getting multitouch events on Mac in a QWindow does not work despite the documentation saying it is supposed to work.

https://bugreports.qt.io/browse/QTBUG-53874

A comment from the Qt developer Morten Sørvig assigned to this ticket indicates it still will require a C++ hack to get multitouch events. "Touch events need to be enabled on a per-QWindow basis on OS X. Widgets and Quick currently do this via the private function QCocoaNativeInterface::registerTouchWindow(). This means there is currently no way to get touch evens via QWindow::touchEvent() on OS X using public API only."

I think the same hack I used in the past can get by this problem. But I don't thick trackpad handling on Mac is important enough relative to other priorities to work on it right now.

Here is the ChimeraX ticket to monitor progress on this issue.  This URL is currently password protected but we are working to make the ChimeraX bug/feature database visible to the public.


  Tom


On Sep 15, 2017, at 3:39 AM, Edoardo Gianni wrote:

Hello,

I was wondering if multitouch was available on chimerax for mac, or if you had plans to implement it in the future.

Thanks and best wishes,
Edoardo
_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users


_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users