Important: Please read the Qt Code of Conduct -

Use WinAPI to implement window borderless

  • Hello,
    When I use WinAPI to implement window borderless, I encountered some problems that I couldn’t solve, that is, when I use Qt::FramelessWindowHint to remove the border, and then use the window message to return to HTCAPTION to change the title bar to a non-client area so that it can be dragged.
    But when I click the menu bar and then click the title bar, the mouse can't achieve the hovering effect even if the mouse moves in the client area. Only by clicking the left mouse button can the hovering effect be achieved.
    I received the window message through the window and qdebug came out, but I did not find the reason.

Log in to reply