[Interest] Qt::Popup prevents WM_NCHITTEST to reach the window

Philipp Kursawe phil.kursawe at gmail.com
Wed Jan 22 10:13:48 CET 2014


I have QDialog with
setWindowFlags(Qt::Popup | Qt::FramelessWindowHint);

and it displays just fine (with shadow and all).
However my nativeEvent handler is never called with the WM_NCHITTEST
message. It is called with WM_LBUTTONDOWN and others. When I replace
Qt::Popup with Qt::Dialog the WM_NCHITTEST messages are sent to my event
handler. However the dialog then loses the "ligh dismiss" functionality and
its shadow.

What's going on here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140122/fce05f94/attachment.html>


More information about the Interest mailing list