通过QT menu里添加窗口和打开窗口出现断言死掉问题。
========
Details
Type: Bug
Status: Closed
Priority: P2: Important
Resolution: Done
Affects Version/s: 4.6.2, 4.7.0
Fix Version/s: 4.6.3
Component/s: Widgets: Widgets and Dialogs
Labels:
None
Environment: Linux (Gentoo AMD64, KDE 4.4.3, Qt 4.6.2 and 4.7.0 beta1)
Changes: eea978b9744c24200496af4f8a37d76228a29320
==================
Re: Debug build of Qt abort with ASSERT
Nikos Chantziaras <realnc <at> arcor.de>
2010-05-17 03:57:06 GMT
On 05/17/2010 06:35 AM, Bob Babcock wrote: > Nikos Chantziaras<realnc <at> arcor.de> wrote in > news:hsom0l$5o6$1 <at> eple.troll.no: > >> When building against the debug version of Qt 4.6.2, my application >> sometimes aborts with: >> >> ASSERT: "!(*watched)" in file widgets/qmenu.cpp, line 997 >> >> Is it me, or could this be a Qt bug? > > I have also seen this with several version of Qt including 4.7 beta 1. The > way I trigger it is to open a non-modal dialog from a menu, then go back to > the menu and move the mouse over the menu items. I do not understand > what's wrong, but it goes away if I use Qt::QueuedConnection in the > connects for the menu. Thanks. I've opened a bug about it and quoted you there. In case you want to confirm: http://bugreports.qt.nokia.com/browse/QTBUG-10735