[Qt] FocusChanged changes

zeljko zeljko at holobit.net
Sun Mar 2 09:47:31 CET 2008


On Sunday 02 March 2008 07:16, Paul Ishenin wrote:
> Hello, Items specific to the Qt widget set
>
> I removed SlotFocus of TQtWidget and added application FocusChanged hook
> to listen for all focus events in r14361. Also I removed piece of code
> on FocusOut event that Zeljan added few months ago (related with
> releaseMouse). Zeljan, please take a look - I hope that with new code we
> dont need that piece of code anymore.

huh, at first look MDI is completely broken (SEGFAULT) - if you try to move 
MDI child ...

Program received signal SIGSEGV, Segmentation fault.
QWidget::setFocus (this=0x9c4af40, reason=96) at qwidget.h:873
873     qwidget.h: No such file or directory.
        in qwidget.h
Current language:  auto; currently c++
(gdb) bt
#0  QWidget::setFocus (this=0x9c4af40, reason=96) at qwidget.h:873
#1  0x066e71e2 in QApplicationPrivate::closePopup (this=0x9bd0818, 
popup=0x9c23468) at kernel/qapplication_x11.c
#2  0x066d676b in QWidgetPrivate::hide_helper (this=0x9c26fe0) at 
qapplication.h:97
#3  0x066d728d in QWidget::setVisible (this=0x9c23468, visible=false) at 
kernel/qwidget.cpp:5648
#4  0x06a05ca3 in QMenuPrivate::hideUpToMenuBar (this=0x9c26fe0) at 
qwidget.h:456
#5  0x06a06176 in QMenuPrivate::activateAction (this=0x9c26fe0, 
action=0x9c34398, action_e=QAction::Trigger, sel
#6  0x06a0879a in QMenu::mouseReleaseEvent (this=0x9c34398, e=0xbf85bf68) at 
widgets/qmenu.cpp:2061
#7  0x066d5c9a in QWidget::event (this=0x9c23468, event=0xbf85bf68) at 
kernel/qwidget.cpp:6145
#8  0x06a03a0c in QMenu::event (this=0x9c23468, e=0xbf85bf68) at 
widgets/qmenu.cpp:2156
#9  0x06693144 in QApplicationPrivate::notify_helper (this=0x9bd0818, 
receiver=0x9c23468, e=0xbf85bf68) at kerne
#10 0x06693e30 in QApplication::notify (this=0x9bd0808, receiver=0x9c23468, 
e=0xbf85bf68) at kernel/qapplication
#11 0x007c2ec0 in QCoreApplication::notifyInternal (this=0x9bd0808, 
receiver=0x9c23468, event=0xbf85bf68) at ker
#12 0x066ed5a6 in QETWidget::translateMouseEvent (this=0x9c23468, 
event=0xbf85c4c8) at qcoreapplication.h:210
#13 0x066ec1e3 in QApplication::x11ProcessEvent (this=0x9bd0808, 
event=0xbf85c4c8) at kernel/qapplication_x11.cp
#14 0x0670ea82 in x11EventSourceDispatch (s=0x9bd86d0, callback=0, 
user_data=0x60) at qcoreapplication.h:97
#15 0x003e3a51 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#16 0x003e52a2 in g_main_context_acquire () from /lib/libglib-2.0.so.0
#17 0x003e572a in g_main_context_iteration () from /lib/libglib-2.0.so.0
#18 0x007e3e6a in QEventDispatcherGlib::processEvents (this=0x9bd5580, 
flags={i = 20}) at kernel/qeventdispatche
#19 0x0670e59f in QGuiEventDispatcherGlib::processEvents (this=0x9bd5580, 
flags={i = 113493872}) at qglobal.h:17
#20 0x007c2f46 in QCoreApplication::processEvents (flags=Cannot access memory 
at address 0x60
) at qglobal.h:1780
#21 0x05cc6102 in QCoreApplication_processEvents () 
from /usr/lib/libqt4intf.so
#22 0x081bc44e in TQTWIDGETSET__APPWAITMESSAGE (this=0x4009b048) at 
qtobject.inc:167
#23 0x0807bd62 in TAPPLICATION__IDLE (WAIT=true, this=0x40093048) at 
application.inc:315
#24 0x0807d37f in TAPPLICATION__HANDLEMESSAGE (this=0x40093048) at 
application.inc:966
#25 0x0807d744 in RUNMESSAGE (parentfp=0xbf85c7c4) at application.inc:1079
#26 0x0807d69e in TAPPLICATION__RUNLOOP (this=0x40093048) at 
application.inc:1089
#27 0x081bc423 in TQTWIDGETSET__APPRUN (ALOOP=0x807d660 
<TAPPLICATION__RUNLOOP>, this=0x4009b048) at qtobject.in
#28 0x0807d65a in TAPPLICATION__RUN (this=0x40093048) at application.inc:1068
#29 0x08056e89 in main () at project1.lpr:14



More information about the Qt mailing list