Parent tool-widget closes when close child widget
I have main QWidget with the flag Qt::Tool and child QWidget with default flags. When I close child, it closes the parent also! How can I resolv the problem?
When I remove flag Qt::Tool from main QWidget, it works normal. But I need this flag in order to avoid taskbar icon of main window (it has systray icon).
did you override the closeEvent() handler?
If yes, did you forget to set the event to accepted?
@Ratzz Thank you, it helped.