summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/itemviews/qtableview/tst_qtableview.cpp
diff options
context:
space:
mode:
authorWladimir Leuschner <wladimir.leuschner@qt.io>2023-11-08 12:35:11 +0100
committerWladimir Leuschner <wladimir.leuschner@qt.io>2023-11-08 18:24:17 +0100
commit7e8ae9cf12611439462e8b26946473fd6492afcc (patch)
tree72e3cb479de66f0077d4eb803336bb29dbe6b9f5 /tests/auto/widgets/itemviews/qtableview/tst_qtableview.cpp
parent19aa21b595c7e523b6cc941580e55d8c6fc50a6d (diff)
Use Desktop Handle in case of no valid app HWND for QPrintDialog
The call Win32 API PrintDlgEx needs in the PRINTDLGEX struct a valid window handle for hwndOwner to show up. In case there is no window created, as seen in the example, the call to PrintDlgEx fails with COM error code E_HANDLE. Using the Desktop HWND, in case of no valid app HWND creates a valid call to PrintDlgEx with showing up the dialog. Pick-to: 6.6 Fixes: QTBUG-118899 Change-Id: Ie7009c8e6e8285a0b6312e310b3d065c532f9e17 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/widgets/itemviews/qtableview/tst_qtableview.cpp')
0 files changed, 0 insertions, 0 deletions