Hi

I am porting Kalzium from Qt3 to Qt4. The last Qt3-class which needed porting is the toolbox, which is in a QDockWindow (Qt3) and now in a QDockWidget (Qt 4.1).

This is a screenshot of the Qt3.5-version. I am talking about the widget on the left.



Everything looks fine so far, but when I click on the little area on top of the window (directly over the word "Overview") it crashes. You can read the sourcecode here: http://websvn.kde.org/trunk/KDE/kdee...94861&view=log

The QDockWidget is created here:

Qt Code:
  1. m_toolbox = new QToolBox( this );
  2. m_dockWin = new QDockWidget("test");
  3.  
  4. m_dockWin->setWidget( m_toolbox );
  5. m_dockWin->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
To copy to clipboard, switch view to plain text mode 

this is the KMainWindow. The widgets in the QToolBox work as expected, the crash only happens if you click on the small area.

Ideas?