Hi Folks,
Our MDI based product is consuming QTitanRibbon v4.17 and faced following issue:
when a ribbon tab is clicked, extra QApplication::focusChanged signal is emitted, as a result the active mdi child is changed.
Here is the stack trace:
_ZN11QMetaObject8activateEP7QObjectiiPPv, FP=7fffffffbe20
_ZN8QMdiArea18subWindowActivatedEP13QMdiSubWindow, FP=7fffffffbe50
_ZN8QMdiArea10childEventEP11QChildEvent, FP=7fffffffbea0
_ZN8QMdiArea16scrollContentsByEii, FP=7fffffffbed0
_ZN8QMdiArea25activatePreviousSubWindowEv, FP=7fffffffbf20
_ZN11QMetaObject8activateEP7QObjectiiPPv, FP=7fffffffc020
_ZN13QMdiSubWindow18windowStateChangedE6QFlagsIN2Qt11WindowStateEES3_, FP=7fffffffc070
_ZN13QMdiSubWindow11qt_metacastEPKc, FP=7fffffffc0d0
_ZN13QMdiSubWindow11qt_metacastEPKc, FP=7fffffffc120
_ZN11QMetaObject8activateEP7QObjectiiPPv, FP=7fffffffc220
_ZN12QApplication12focusChangedEP7QWidgetS1_, FP=7fffffffc260
_ZN19QApplicationPrivate14setFocusWidgetEP7QWidgetN2Qt11FocusReasonE, FP=7fffffffc2d0
_ZN7QWidget8setFocusEN2Qt11FocusReasonE, FP=7fffffffc330
_ZN7QWidget18focusNextPrevChildEb, FP=7fffffffc390
_ZN7QWidget18focusNextPrevChildEb, FP=7fffffffc3f0
_ZN7QWidget18focusNextPrevChildEb, FP=7fffffffc450
_ZN14QWidgetPrivate11hide_helperEv, FP=7fffffffc4c0
_ZN7QWidget10setVisibleEb, FP=7fffffffc510
_ZN6Qtitan20qtn_set_page_visibleEPNS_10RibbonPageEb, FP=7fffffffc530
_ZN6Qtitan9RibbonTab11setSelectedEb, FP=7fffffffc550
_ZN6Qtitan12RibbonTabBar11activateTabEPKNS_9RibbonTabE, FP=7fffffffc580
_ZN6Qtitan12RibbonTabBar15setCurrentIndexEi, FP=7fffffffc5a0
_ZN6Qtitan9RibbonTab7clickedEv, FP=7fffffffc5c0
_ZN6Qtitan9RibbonTab15mousePressEventEP11QMouseEvent, FP=7fffffffc5d0
As a solution we suggest, before making the tab visible, to set the focus on the clicked tab widget.