# BorderlessWindow for Qt
Native borderless window for Windows OS. Allows to create gui like in Office 2013 or Visual Studio 2012.
<br />
<br />
![ScreenShot](https://raw.githubusercontent.com/deimos1877/BorderlessWindow/master/Screenshots/MainWindow.png)
<br />
<br />
### Difference from Qt:FramelessWindowHint
* Resizable
* Draggable
* Minimize animation
* Aero snap support
* Aero shake support
* ALT+Space system menu works
* System shadow support
<br />
<br />
### General Info
Creates a simple borderless WinAPI window, like [this one](http://stackoverflow.com/questions/16765561/borderless-window-using-areo-snap-shadow-minimize-animation-and-shake). 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).
<br />
<br />
### 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();
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
AiBrowser_01-2.zip (48个子文件)
AiBrowserV1.0.1
logo.ico 66KB
tabwidget.h 3KB
BorderlessWindow.pro 758B
webpopupwindow.h 3KB
passworddialog.ui 3KB
urllineedit.cpp 4KB
webview.cpp 6KB
tabwidget.cpp 10KB
ui_passworddialog.h 4KB
QtWinMigrate.pri 863B
QFramer.ini 58B
Icons.qrc 486B
certificateerrordialog.ui 3KB
browser.h 2KB
webpopupwindow.cpp 4KB
QMainPanel.cpp 6KB
BorderlessWindow.css 972B
webpage.h 2KB
browser.cpp 3KB
MainWindow.h 2KB
main.cpp 1KB
debug
LICENSE.md 1KB
QWinWidget.h 3KB
ui_certificateerrordialog.h 5KB
MainWindow.cpp 11KB
QMainPanel.h 714B
QWinHost.h 3KB
browserwindow.cpp 17KB
webpage.cpp 6KB
webview.h 3KB
README.md 2KB
browserwindow.h 4KB
Icons
simplebrowser.svg 2KB
Restore.png 167B
MinimizeHover.png 172B
8ff7039439974cf7cac1291c5f735e58.png 52B
MaximizeHover.png 186B
Maximize.png 163B
RestoreHover.png 200B
Close.png 196B
Minimize.png 139B
CloseHover.png 196B
QWinHost.cpp 10KB
Common.pri 246B
BorderlessWindow_resource.rc 774B
QWinWidget.cpp 11KB
urllineedit.h 2KB
release
BorderlessWindow.pro.user 23KB
共 48 条
- 1
资源评论
- ZC·Shou2017-08-14不用下了,这个就是个开源的东西,被拿来卖了。。https://github.com/deimos1877/BorderlessWindow
qq_31215157
- 粉丝: 5
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功