百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
B

BorderlessWindow

> 编程语言
开源

BorderlessWindow 适用于 Windows 操作系统的 Qt 原生无边框窗口。可创建类似 Office 2013 或 Visual Studio 2012 的 GUI。区别在于 ...

196 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

BorderlessWindow 适用于 Windows 操作系统的 Qt 原生无边框窗口。可创建类似 Office 2013 或 Visual Studio 2012 的 GUI。区别在于 ...

BorderlessWindow for Qt

Native borderless window for Windows OS. Allows to create gui like in Office 2013 or Visual Studio 2012.

Difference from Qt:FramelessWindowHint

  • Resizable
  • Draggable
  • Minimize animation
  • Aero snap support
  • Aero shake support
  • ALT+Space system menu works
  • System shadow support

General Info

Creates a simple borderless WinAPI window, like this one. Then adds QWinWidget from QtWinMigrate and fills window with it.

Then you can use that QWinWidget to create your Qt gui.

Resizable edges of the window is drawn by WinAPI, everything else is handled by QWinWidget.

Application has two event loops: one from WinApi, one from QApplication. You should use appropriate event loop, depending on what event you trying to catch.

For simplicity, my example uses only one QWinWidget. Keep in mind, that you can add multiple QWinWidgets, if necessary.

Code obviously works only on Windows OS. Should work fine with both Qt4 and Qt5. Tested with Visual Studio 2012 Compiler (Qt 4.8.5 and Qt 5.3.)

If you use Visual Studio, you'll need to import BorderlessWindow.pro file (VS Main menu -> Qt -> open Qt Project file).

Usage

  • main.cpp -> Example
  • MainWindow.cpp -> WinAPI Window
  • QMainPanel.cpp -> QWinWidget, add your widgets here

Controls:

  • F5 - Toggle resizable
  • F6 - Toggle borderless/normal window
  • F7 - Toggle shadow
BorderlessWindow( QApplication *app, HBRUSH windowBackground, const int x, const int y, const int width, const int height );

Toggle functions

void toggleBorderless();
void toggleShadow();
void toggleResizeable();
bool isResizeable();

Size constrains

void setMinimumSize( const int width, const int height );
bool isSetMinimumSize();
void removeMinimumSize();
int getMinimumHeight();
int getMinimumWidth();

void setMaximumSize( const int width, const int height );
bool isSetMaximumSize();
int getMaximumHeight();
int getMaximumWidth();
void removeMaximumSize();

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言