Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destruction of CDockWidget inside a CFloatingDockContainer #594

Closed
IkkiNit opened this issue Jan 3, 2024 · 2 comments
Closed

Destruction of CDockWidget inside a CFloatingDockContainer #594

IkkiNit opened this issue Jan 3, 2024 · 2 comments
Assignees

Comments

@IkkiNit
Copy link

IkkiNit commented Jan 3, 2024

Hello,

I have a problem with the destruction of the floating widgets. The destructors of CDockWidgets are not always called when the application is closed if the docks are in floating mode.
It tested it with the sample DeleteOnCloseTest.

To repro it:

  • add two more docks in the app ("test 1" and "test 2")
  • make the "test 1" dock a floating widget
  • put the "test 2" dock inside the "test 1" floating widget (over the "test1" widget, no problem when it is on a side)
  • close the app and see that only two CDockWidgets are destroyed ("test 0" and "test 2"), the third one will never be destroyed ("test 1")

See the case in the attached screenshot. Thanks

image

@githubuser0xFFFF
Copy link
Owner

Thank you for this bug report. Please try to debug the issue in QtCreator and provide a pull request to fix the issue - thank you.

@githubuser0xFFFF
Copy link
Owner

Just fixed it for you - feel free to donate something.

githubuser0xFFFF added a commit that referenced this issue Jan 26, 2024
…oatingWidget caused crash when loading a state from XML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants