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. How to remove blue border in windows 10?
Qt 6.12 LTS is out! See what's new in the release blog

How to remove blue border in windows 10?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 761 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.
  • A Offline
    A Offline
    Anton Shelenkov
    wrote on last edited by Anton Shelenkov
    #1

    I creat mainWindow widget and it have 1px border around widget in windows 10. How i can delete it?

    I found solution!

    in .pro
    QT += winextras

    in .cpp

    #include <QtWin>
    QtWin::extendFrameIntoClientArea(this,-1,-1,-1,-1);

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      That is the OS frame/decoration. (not drawn by Qt but the OS)
      You can disable it with

      Qt::WindowFlags flags = this->windowFlags(); 
      this->setWindowFlags(flags|Qt::FramelessWindowHint);
      

      However, you loose move and resize functionality.

      1 Reply Last reply
      2

      • Login

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