PDA

View Full Version : qtlogging.ini, QT_LOGGING_RULES and qt.widgets.gestures output



taraj
22nd September 2016, 06:33
Hi,

I'm running the QT5 example basiclayout and when I do gestures (move mouse etc) I get the following output on my konsole and I don't like it. how can I turn this off?

Also where are all the rules options that can be put in the qtlogging.ini?

cheers,
Tara

qt.widgets.gestures: QGestureManager:Recognizer: ignored the event: QPanGesture(state=NoGesture,lastOffset=0,0QPointF( 0,0),offset=0,0,acceleration=0,delta=0,0) QEvent(Leave, 0x7ffdf7ab0870)
qt.widgets.gestures: QGestureManager:Recognizer: ignored the event: QPanGesture(state=NoGesture,lastOffset=0,0QPointF( 0,0),offset=0,0,acceleration=0,delta=0,0) QEvent(WindowDeactivate, 0x7ffdf7ab0810)
qt.widgets.gestures: QGestureManager:Recognizer: ignored the event: QPanGesture(state=NoGesture,lastOffset=0,0QPointF( 0,0),offset=0,0,acceleration=0,delta=0,0) QEvent(WindowDeactivate, 0x7ffdf7ab0810)
qt.widgets.gestures: QGestureManager:Recognizer: ignored the event: QPanGesture(state=NoGesture,lastOffset=0,0QPointF( 0,0),offset=0,0,acceleration=0,delta=0,0) QEvent(WindowDeactivate, 0x7ffdf7ab0810)
qt.widgets.gestures: QGestureManager:Recognizer: ignored the event: QPanGesture(state=NoGesture,lastOffset=0,0QPointF( 0,0),offset=0,0,acceleration=0,delta=0,0) QHideEvent(Hide, 0x7ffdf7ab0790)
qt.widgets.gestures: QGestureManager:Recognizer: ignored the event: QPanGesture(state=NoGesture,lastOffset=0,0QPointF( 0,0),offset=0,0,acceleration=0,delta=0,0) QHideEvent(Hide, 0x7ffdf7ab06f0)
qt.widgets.gestures: QGestureManager:Recognizer: ignored the event: QPanGesture(state=NoGesture,lastOffset=0,0QPointF( 0,0),offset=0,0,acceleration=0,delta=0,0) QHideEvent(Hide, 0x7ffdf7ab06f0)

ChrisW67
22nd September 2016, 21:52
You could install a message handler and suppress the output
http://doc.qt.io/qt-5/qtglobal.html#qInstallMessageHandler
Or define QT_NO_WARNING_OUTPUT

anda_skoa
23rd September 2016, 14:21
You could also try to switch off logging for debug/info/warning of "qt.widgets.gestures"

According to http://doc.qt.io/qt-5/qloggingcategory.html#configuring-categories that would be something like


qt.widgets.gestures.debug=false
qt.widgets.gestures.info=false
qt.widgets.gestures.warning=false

Might even be possible to use the wildcard for the type.

Cheers,
_

taraj
3rd October 2016, 23:18
Excellent! thank you that worked nicely ;)