I ran into the same problem, where a closed QDialog would magically appear over a QMainWindow when hovering over the programs' TaskBar icon...
I understand that QDialogs do not get shown in the TaskBar thumbnail, but how does the Dialog appear out of thin air, after dismissing it??
@GreenSadFrog said in Incorrect QDialog view in Windows 10 taskbar:
If you click on the thumbnail (activate the window), QDialog will hide quickly to the correct state.
The problem OP described doesn't have anything to do with the Dialog not being shown in the Thumbnail btw
Seems to be a known bug https://bugreports.qt.io/browse/QTBUG-48855