Il 30/10/18 13:53, Andy ha scritto:
Turns out that if you have a QMainWindow containing a QWindow (e.g. by using QWidget::createWindowContainer()):

  - if you call QMainWindow::close(), the QWindow receives QEvent::Hide and does the right thing   - if you click the close button in the title bar, the QWindow receives QEvent::Close which calls QWindow::destroy()

This is not what I would expect. Is this by design?

The QWidget::createWindowContainer docs don't mention this as a limitation.

Smells like a bug to me, please report it.

HTH,

--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to