Is it possible to build Qt 5 without gestures on OS X?

  • Hi,

    I'm not intending to provide support for gestures in my application, yet Qt occasionally crashes (unfortunately this is not reliably reproducible) when attempting to handle gestures (I'm using a magic mouse). So I was wondering if there was some configuration option to disable gestures entirely? I've seen there's a define in the source code to achieve that but found no documentation as to how to set it when configuring Qt.

    For info, part of the crash log:
    Thread 0 Crashed:: Dispatch queue:
    0   libQt5Widgets.5.dylib        
    0x00000001115b8e78 QGestureManager::getGestureTargets(QSet<QGesture*> const&, QHash<QWidget*, QList<QGesture*> >, QHash<QWidget, QList<QGesture*> >) + 1176
    1   libQt5Widgets.5.dylib        
    0x00000001115b6dbc QGestureManager::deliverEvents(QSet<QGesture
    > const&, QSet<QGesture*>) + 972
    2   libQt5Widgets.5.dylib        
    0x00000001115b616f QGestureManager::filterEventThroughContexts(QMultiMap<QObject
    , Qt::GestureType> const&, QEvent*) + 4255
    3   libQt5Widgets.5.dylib        
    0x00000001115b83b9 QGestureManager::filterEvent(QWidget*, QEvent*) + 889
    4   libQt5Widgets.5.dylib        
    0x00000001115700e9 QApplication::notify(QObject*, QEvent*) + 457
    5   libQt5Core.5.dylib            
    0x0000000110f9f972 QCoreApplication::notifyInternal(QObject*, QEvent*) + 114
    6   libQt5Core.5.dylib            
    0x0000000110feecd6 QTimerInfoList::activateTimers() + 982
    7   libqcocoa.dylib              
    0x0000000114291725 QCocoaEventDispatcherPrivate::activateTimersSourceCallback(void*) + 21

    Thanks in advance.

  • Did you build Qt from source of use the installer?

    I have never had a Qt crash on OS X (all crashes I experienced were from something I did wrong). I always install from the source and may have removed this part without realizing it (?).

  • I built it from source (version 5.3.1)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.