Qt4-preview-feedback Archive, March 2007
4.3.0 - Unhandled exception QMainWindowLayout::animationFinished()
Message 1 in thread
Occasionally I receive an unhandled exception in
QMainWindowLayout::animationFinished() on Windows platform, when I
dynamically create a toolbar docked on my QMainWindow. This causes my
application to terminate and occurs in the latest snapshot 20070307 and
20070228. However this problem does not occur in snapshot 20070212, so has
appeared only recently.
Call Stack
QObject *QMetaObject::cast(QObject *obj) const
static_cast<T>(reinterpret_cast<T>(0)->staticMetaObject.cast(object))
qobject_cast<QToolBar*>(widget)
void QMainWindowLayout::animationFinished(QWidget *widget)
....
Subsequently, I've tried removing all the toolbars from my application and
oddly this problem still occurs, even without any toolbars its trying to
cast a widget to a QToolbar object.
Regards,
Simon Bourne