[don't be confused by the artificial window frame of 1] 5.15.3 windows windowsvista () Close with X QWindowPrivate::init 0x17ae6aa1d20 QWindowPrivate::create 0x17ae6aa1d20 QWidgetWindow::handleResizeEvent QWidget(0xfa018f920) QRect(0,0 640x480) QSize(640, 480) QWidgetWindow::updateSize um! QWidgetWindow::updateMargins QWidget(0xfa018f920) QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae6a9d840, name="QWidgetClassWindow") QPlatformSurface(0x17ae6b14c00, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae6a9d840, name="QWidgetClassWindow")) QWidgetWindow::handleMoveEvent um! true QWidgetWindow::updateMargins QWidget(0xfa018f920) QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae6a9d840, name="QWidgetClassWindow") QPlatformSurface(0x17ae6b14c00, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae6a9d840, name="QWidgetClassWindow")) QWidgetPrivate::updateFrameStrut QWidget(0xfa018f920) dirty 0 QWidgetPrivate::setGeometry_sys QWidget(0xfa018f920) 520 265 421 45 isMove= false QWindowsWindow::setGeometry QWidgetWindow(0x17ae6a9d840, name="QWidgetClassWindow") positionIncludesFrame= false QRect(520,265 421x45) > QWindowsBaseWindow::setGeometry_sys QWidgetWindow(0x17ae6a9d840, name="QWidgetClassWindow") from QRect(520,265 640x480) frame: QMargins(8, 31, 8, 8) to QRect(520,265 421x45) new frame: QRect(512,234 437x84) QWidgetWindow::handleResizeEvent QWidget(0xfa018f920) QRect(0,0 421x45) QSize(421, 45) QWidgetWindow::updateSize um! QWidgetWindow::updateMargins QWidget(0xfa018f920) QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae6a9d840, name="QWidgetClassWindow") QPlatformSurface(0x17ae6b14c00, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae6a9d840, name="QWidgetClassWindow")) QWindowPrivate::init 0x17ae89980a0 Widget::showColorDialog # 0 QColorDialog 100x30+0+0 frameless QWindowPrivate::init 0x17ae6aa1ae0 QWindowPrivate::create 0x17ae6aa1ae0 QWidgetWindow::handleResizeEvent QColorDialog(0x17ae89af040) QRect(0,0 100x30) QSize(120, 30) QWidgetWindow::updateSize um! QWidgetWindow::updateMargins QColorDialog(0x17ae89af040) QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") QPlatformSurface(0x17ae6b21b80, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow")) QColorDialog ResizeEvent QSize(100, 30) QSize(120, 30) QWidgetPrivate::setGeometry_sys QColorDialog(0x17ae89af040) 0 0 522 393 isMove= false QWidgetWindow::handleMoveEvent um! true QWidgetWindow::updateMargins QColorDialog(0x17ae89af040) QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") QPlatformSurface(0x17ae6b21b80, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow")) QColorDialog MoveEvent QPoint(0,0) QPoint(681,273) QWidgetPrivate::updateFrameStrut QColorDialog(0x17ae89af040) dirty 0 QColorDialog MoveEvent QPoint(681,273) QPoint(681,273) QColorDialog ResizeEvent QSize(-1, -1) QSize(522, 393) QShowEvent(Show, 0xfa0189ad8) QColorDialog 522x393+681+273 fr=524x425+680+242 fr[1,31] wid=0x3005fc QDialog::adjustPosition QColorDialog(0x17ae89af040) extra 1 31 QDialog::adjustPosition QColorDialog(0x17ae89af040) QPoint(730,287) QDialog::adjustPosition QColorDialog(0x17ae89af040) QSize(522, 393) QDialog::adjustPosition QColorDialog(0x17ae89af040) re-centered QPoint(468,60) QWidget::move QColorDialog(0x17ae89af040) WA_WState_Created QPoint(468,60) QWidgetPrivate::setGeometry_sys QColorDialog(0x17ae89af040) 469 91 522 393 isMove= true QWindow::setGeometry QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") 1 QRect(469,91 120x30) QWindowsWindow::setGeometry QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") positionIncludesFrame= false QRect(469,91 120x30) > QWindowsBaseWindow::setGeometry_sys QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") from QRect(681,273 120x30) frame: QMargins(8, 31, 8, 8) to QRect(469,91 120x30) new frame: QRect(461,60 136x69) QWindowsWindow::setGeometry: Unable to set geometry 120x30+469+91 (frame: 136x69+461+60) on QWidgetWindow/"QColorDialogClassWindow" on "\\.\DISPLAY1". Resulting geometry: 522x393+469+91 (frame: 538x432+461+60) margins: 8, 31, 8, 8 minimum size: 522x393 maximum size: 522x393 MINMAXINFO maxSize=0,0 maxpos=0,0 mintrack=538,432 maxtrack=538,432) QColorDialog MoveEvent QPoint(680,242) QPoint(468,60) QWidgetWindow::handleResizeEvent QColorDialog(0x17ae89af040) QRect(0,0 522x393) QSize(522, 393) QWidgetWindow::updateSize um! QWidgetWindow::updateMargins QColorDialog(0x17ae89af040) QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") QPlatformSurface(0x17ae6b21b80, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow")) QWidgetWindow::handleMoveEvent um! false QWidgetWindow::updateMargins QColorDialog(0x17ae89af040) QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") QPlatformSurface(0x17ae6b21b80, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow")) QCloseEvent(Close, 0xfa018b340) QColorDialog 522x393+469+91 fr=524x425+468+60 fr[1,31] wid=0x3005fc QHideEvent(Hide, 0xfa0189b00) QColorDialog 522x393+469+91 fr=524x425+468+60 fr[1,31] wid=0x3005fc Widget::closeDialog # 1 QColorDialog 522x393+469+91 fr=524x425+468+60 fr[1,31] wid=0x3005fc QWidgetPrivate::close_helper close branch QWidgetPrivate::close_helper QColorDialog(0x17ae89af040) QWindow::destroy QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") QWidgetWindow::handleResizeEvent QColorDialog(0x17ae89af040) QRect(0,0 522x393) QSize(522, 393) QWidgetWindow::updateSize um! --<<< Margins are cleared here!!! QWidgetWindow::updateMargins QColorDialog(0x17ae89af040) QMargins(0, 0, 0, 0) is_closing 0 QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") QPlatformSurface(0x0) Widget::showColorDialog # 2 QColorDialog 522x393+469+91 frameless QWindowPrivate::create 0x17ae6aa1ae0 QWidgetPrivate::updateFrameStrut QColorDialog(0x17ae89af040) dirty 0 QShowEvent(Show, 0xfa0189ad8) QColorDialog 522x393+469+91 frameless wid=0x3105fc QDialog::adjustPosition QColorDialog(0x17ae89af040) extra 1 31 QDialog::adjustPosition QColorDialog(0x17ae89af040) QPoint(730,287) QDialog::adjustPosition QColorDialog(0x17ae89af040) QSize(522, 393) QDialog::adjustPosition QColorDialog(0x17ae89af040) re-centered QPoint(468,60) QWidget::move QColorDialog(0x17ae89af040) WA_WState_Created QPoint(468,60) QWidgetPrivate::setGeometry_sys QColorDialog(0x17ae89af040) 468 60 522 393 isMove= true QWindow::setGeometry QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") 1 QRect(468,60 522x393) QWindowsWindow::setGeometry QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") positionIncludesFrame= false QRect(468,60 522x393) > QWindowsBaseWindow::setGeometry_sys QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") from QRect(469,91 522x393) frame: QMargins(8, 31, 8, 8) to QRect(468,60 522x393) new frame: QRect(460,29 538x432) QColorDialog MoveEvent QPoint(469,91) QPoint(468,60) QWidgetWindow::handleMoveEvent um! false QWidgetWindow::updateMargins QColorDialog(0x17ae89af040) QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") QPlatformSurface(0x17ae6b22000, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow")) Widget::dumpGeoms # 3 QColorDialog 522x393+468+60 fr=524x425+467+29 fr[1,31] wid=0x3105fc QCloseEvent(Close, 0xfa018b340) QColorDialog 522x393+468+60 fr=524x425+467+29 fr[1,31] wid=0x3105fc QHideEvent(Hide, 0xfa0189b00) QColorDialog 522x393+468+60 fr=524x425+467+29 fr[1,31] wid=0x3105fc Widget::closeDialog # 4 QColorDialog 522x393+468+60 fr=524x425+467+29 fr[1,31] wid=0x3105fc QWidgetPrivate::close_helper close branch QWidgetPrivate::close_helper QColorDialog(0x17ae89af040) QWindow::destroy QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") QWidgetWindow::handleResizeEvent QColorDialog(0x17ae89af040) QRect(0,0 522x393) QSize(522, 393) QWidgetWindow::updateSize um! QWidgetWindow::updateMargins QColorDialog(0x17ae89af040) QMargins(0, 0, 0, 0) is_closing 0 QWidgetWindow(0x17ae6add850, name="QColorDialogClassWindow") QPlatformSurface(0x0) QWidget::move QSizeGrip(0x17ae6b01ac0) not Created QPoint(508,303) ------------------------ QFileDialog ------------------------------ Widget::showFileDialog # 5 "QFileDialog"/QFileDialog 648x408+0+0 frameless QWindowPrivate::init 0x17ae8c5fb00 QWindowPrivate::create 0x17ae8c5fb00 QWidgetWindow::handleResizeEvent QFileDialog(0x17ae6b00da0, name="QFileDialog") QRect(0,0 648x408) QSize(648, 408) QWidgetWindow::updateSize um! QWidgetWindow::updateMargins QFileDialog(0x17ae6b00da0, name="QFileDialog") QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") QPlatformSurface(0x17ae8a14250, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow")) QWidgetWindow::handleMoveEvent um! true QWidgetWindow::updateMargins QFileDialog(0x17ae6b00da0, name="QFileDialog") QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") QPlatformSurface(0x17ae8a14250, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow")) QFileDialog MoveEvent QPoint(0,0) QPoint(407,84) QWidgetPrivate::updateFrameStrut QFileDialog(0x17ae6b00da0, name="QFileDialog") dirty 0 QFileDialog MoveEvent QPoint(407,84) QPoint(407,84) QFileDialog ResizeEvent QSize(-1, -1) QSize(648, 408) QWidget::move QSizeGrip(0x17ae6b01ac0) not Created QPoint(635,395) QShowEvent(Show, 0xfa0189a88) "QFileDialog"/QFileDialog 648x408+407+84 fr=650x440+406+53 fr[1,31] wid=0x3205fc QDialog::adjustPosition QFileDialog(0x17ae6b00da0, name="QFileDialog") extra 1 31 QDialog::adjustPosition QFileDialog(0x17ae6b00da0, name="QFileDialog") QPoint(730,287) QDialog::adjustPosition QFileDialog(0x17ae6b00da0, name="QFileDialog") QSize(648, 408) QDialog::adjustPosition QFileDialog(0x17ae6b00da0, name="QFileDialog") re-centered QPoint(405,52) QWidget::move QFileDialog(0x17ae6b00da0, name="QFileDialog") WA_WState_Created QPoint(405,52) QWidgetPrivate::setGeometry_sys QFileDialog(0x17ae6b00da0, name="QFileDialog") 406 83 648 408 isMove= true QWindow::setGeometry QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") 1 QRect(406,83 648x408) QWindowsWindow::setGeometry QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") positionIncludesFrame= false QRect(406,83 648x408) > QWindowsBaseWindow::setGeometry_sys QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") from QRect(407,84 648x408) frame: QMargins(8, 31, 8, 8) to QRect(406,83 648x408) new frame: QRect(398,52 664x447) QFileDialog MoveEvent QPoint(406,53) QPoint(405,52) QWidgetWindow::handleMoveEvent um! false QWidgetWindow::updateMargins QFileDialog(0x17ae6b00da0, name="QFileDialog") QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") QPlatformSurface(0x17ae8a14250, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow")) Widget::dumpGeoms # 6 "QFileDialog"/QFileDialog 648x408+406+83 fr=650x440+405+52 fr[1,31] wid=0x3205fc QCloseEvent(Close, 0xfa018b340) "QFileDialog"/QFileDialog 648x408+406+83 fr=650x440+405+52 fr[1,31] wid=0x3205fc QHideEvent(Hide, 0xfa0189b30) "QFileDialog"/QFileDialog 648x408+406+83 fr=650x440+405+52 fr[1,31] wid=0x3205fc Widget::closeDialog # 7 "QFileDialog"/QFileDialog 648x408+406+83 fr=650x440+405+52 fr[1,31] wid=0x3205fc QWidgetPrivate::close_helper close branch QWidgetPrivate::close_helper QFileDialog(0x17ae6b00da0, name="QFileDialog") QWindow::destroy QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") QWidgetWindow::handleResizeEvent QFileDialog(0x17ae6b00da0, name="QFileDialog") QRect(0,0 648x408) QSize(648, 408) QWidgetWindow::updateSize um! QWidgetWindow::updateMargins QFileDialog(0x17ae6b00da0, name="QFileDialog") QMargins(0, 0, 0, 0) is_closing 0 QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") QPlatformSurface(0x0) Widget::showFileDialog # 8 "QFileDialog"/QFileDialog 648x408+406+83 frameless QWindowPrivate::create 0x17ae8c5fb00 QWidgetPrivate::updateFrameStrut QFileDialog(0x17ae6b00da0, name="QFileDialog") dirty 0 QShowEvent(Show, 0xfa0189a88) "QFileDialog"/QFileDialog 648x408+406+83 frameless wid=0x3305fc QDialog::adjustPosition QFileDialog(0x17ae6b00da0, name="QFileDialog") extra 1 31 QDialog::adjustPosition QFileDialog(0x17ae6b00da0, name="QFileDialog") QPoint(730,287) QDialog::adjustPosition QFileDialog(0x17ae6b00da0, name="QFileDialog") QSize(648, 408) QDialog::adjustPosition QFileDialog(0x17ae6b00da0, name="QFileDialog") re-centered QPoint(405,52) QWidget::move QFileDialog(0x17ae6b00da0, name="QFileDialog") WA_WState_Created QPoint(405,52) QWidgetPrivate::setGeometry_sys QFileDialog(0x17ae6b00da0, name="QFileDialog") 405 52 648 408 isMove= true QWindow::setGeometry QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") 1 QRect(405,52 648x408) QWindowsWindow::setGeometry QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") positionIncludesFrame= false QRect(405,52 648x408) > QWindowsBaseWindow::setGeometry_sys QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") from QRect(406,83 648x408) frame: QMargins(8, 31, 8, 8) to QRect(405,52 648x408) new frame: QRect(397,21 664x447) QFileDialog MoveEvent QPoint(406,83) QPoint(405,52) QWidgetWindow::handleMoveEvent um! false QWidgetWindow::updateMargins QFileDialog(0x17ae6b00da0, name="QFileDialog") QMargins(1, 31, 1, 1) is_closing 0 QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") QPlatformSurface(0x17ae8a134d0, class=QSurface::Window, type=QSurface::RasterGLSurface, window=QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow")) QWindowPrivate::init 0x17ae6b2d860 QWidgetPrivate::updateFrameStrut QWidget(0x17ae8da5230) dirty 1 QWidgetPrivate::updateFrameStrut 1 QWindowPrivate::init 0x17ae8d87580 QWidgetPrivate::updateFrameStrut QWidget(0x17ae8d5e200) dirty 1 QWidgetPrivate::updateFrameStrut 1 QWidgetPrivate::setGeometry_sys QDesktopScreenWidget(0x17ae8d5e200) 0 0 1680 1050 isMove= true QWidgetPrivate::setGeometry_sys QDesktopWidget(0x17ae8da5230, name="desktop") 0 0 1680 1050 isMove= true Widget::dumpGeoms # 9 "QFileDialog"/QFileDialog 648x408+405+52 fr=650x440+404+21 fr[1,31] wid=0x3305fc QCloseEvent(Close, 0xfa018b340) "QFileDialog"/QFileDialog 648x408+405+52 fr=650x440+404+21 fr[1,31] wid=0x3305fc QHideEvent(Hide, 0xfa0189b30) "QFileDialog"/QFileDialog 648x408+405+52 fr=650x440+404+21 fr[1,31] wid=0x3305fc Widget::closeDialog # 10 "QFileDialog"/QFileDialog 648x408+405+52 fr=650x440+404+21 fr[1,31] wid=0x3305fc QWidgetPrivate::close_helper close branch QWidgetPrivate::close_helper QFileDialog(0x17ae6b00da0, name="QFileDialog") QWindow::destroy QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") QWidgetWindow::handleResizeEvent QFileDialog(0x17ae6b00da0, name="QFileDialog") QRect(0,0 648x408) QSize(648, 408) QWidgetWindow::updateSize um! QWidgetWindow::updateMargins QFileDialog(0x17ae6b00da0, name="QFileDialog") QMargins(0, 0, 0, 0) is_closing 0 QWidgetWindow(0x17ae8c1ff80, name="QFileDialogWindow") QPlatformSurface(0x0) QWidgetPrivate::close_helper close branch QWidgetPrivate::close_helper QWidget(0xfa018f920) QWidgetPrivate::deleteTLSysExtra QWidget(0x17ae89af040) QWindow::~QWindow QWindow(0x17ae6add850, name="QColorDialogClassWindow") QWindow::~QWindow QWindow(0x17ae89ab5a8) QWidgetPrivate::deleteTLSysExtra QObject(0x17ae89af040) QWidgetPrivate::deleteTLSysExtra QWidget(0x17ae8ccc580) QWidgetPrivate::deleteTLSysExtra QObject(0x17ae8ccc580) QWidgetPrivate::deleteTLSysExtra QWidget(0x17ae8cccac0) QWidgetPrivate::deleteTLSysExtra QObject(0x17ae8cccac0) QWidgetPrivate::deleteTLSysExtra QWidget(0x17ae6b00da0, name="QFileDialog") QWindow::~QWindow QWindow(0x17ae8c1ff80, name="QFileDialogWindow") QWidgetPrivate::deleteTLSysExtra QObject(0x17ae6b00da0, name="QFileDialog") QWidgetPrivate::deleteTLSysExtra QWidget(0xfa018f920) QWindow::destroy QWidgetWindow(0x17ae6a9d840, name="QWidgetClassWindow") QWindow::~QWindow QWindow(0x17ae6a9d840, name="QWidgetClassWindow") QWidgetPrivate::deleteTLSysExtra QObject(0xfa018f920) QWidgetPrivate::deleteTLSysExtra QObject(0x17ae8d5e200) QWindow::~QWindow QWindow(0x17ae8d44ec0, name="QWidgetClassWindow") QWidgetPrivate::deleteTLSysExtra QObject(0x17ae8da5230, name="desktop") QWindow::~QWindow QWindow(0x17ae8d44ce0, name="desktopWindow")