KDAB / KDDockWidgets

KDAB's Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets
Other
747 stars 163 forks source link

Qt Quick: Crash when deleting dockWidget in MDI #473

Closed MiKom closed 4 months ago

MiKom commented 4 months ago

Environment

Steps to reproduce

  1. Add the following code to examples\qtquick\mdi\main.cpp:
    QTimer::singleShot(std::chrono::seconds(3), [&]{
        delete dw1;
        delete dw2;
    });
  2. Run the qtquick_mdi.exe example
  3. Wait

Expected result

dw1 and dw2 are properly deleted and disappear taking their children with them.

Actual result

Application crashes with the following stacktrace: https://gist.github.com/MiKom/e9fe77c45004a2139a8410ba0c90740e

iamsergio commented 4 months ago

Fixed in 18663268bb521733cac6df6418809f179cbe0a01