Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Use WinAPI to implement window borderless
Qt 6.12 LTS is out! See what's new in the release blog

Use WinAPI to implement window borderless

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 306 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Ming_tft
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved