QQuickView nativeEvent and Qml



  • I have a frameless QML window that inherited from QQuickView class something like the attached image, I've overridden the nativeEvent method to handle resize and some other native events on Windows platform.
    I want to return HTCAPTION when the WM_NCHITTEST event comes and mouse is hovering over the caption rectangle(gray area) not the blue buttons.
    But the nativeEvent handler of QQuickView calls before event handler of QtQuick items, I should somehow know that the mouse is over the caption rectangle before returning true in the nativeEvent method, because when I return true Qt will not handle that event.
    0_1516996700680_QtquickView.png


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.