Update README.md

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2021-05-12 08:55:44 +08:00
parent fca63dbf54
commit 6f98dd8930
3 changed files with 18 additions and 3 deletions

View File

@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
Please refer to [the QWidget example](/examples/QWidget/main.cpp) for more detailed information. Please refer to [the QWidget example](/examples/QWidget/main.cpp) for more detailed information.
### Ignore areas and etc ### Some details
```cpp ```cpp
// Only **TOP LEVEL** QWidgets and QWindows are supported. // Only **TOP LEVEL** QWidgets and QWindows are supported.
@ -60,6 +60,11 @@ win->setMinimumSize(800, 540);
FramelessWindowsManager::addIgnoreObject(win, ui->pushButton_minimize); FramelessWindowsManager::addIgnoreObject(win, ui->pushButton_minimize);
``` ```
## IMPORTANT NOTES
- For [QDockWidget](https://doc.qt.io/qt-6/qdockwidget.html), it supports set a custom title bar widget officially, no need to use this library, and this library is known to be not working well for QDockWidgets. Please refer to <https://doc.qt.io/qt-6/qdockwidget.html#setTitleBarWidget> for more details.
- Only top level windows ([QWindow](https://doc.qt.io/qt-6/qwindow.html) and [QWidget](https://doc.qt.io/qt-6/qwidget.html)) are supported.
## Supported Platforms ## Supported Platforms
### Win32 ### Win32

View File

@ -22,12 +22,17 @@ helper.removeWindowFrame(&widget);
widget.show(); widget.show();
``` ```
### Ignore areas and etc ### Some details
```cpp ```cpp
helper.setIgnoreAreas(&widget, {{0, 0, 30, 40}, {40, 0, 30, 40}}); helper.setIgnoreAreas(&widget, {{0, 0, 30, 40}, {40, 0, 30, 40}});
``` ```
## IMPORTANT NOTES
- For [QDockWidget](https://doc.qt.io/qt-6/qdockwidget.html), it supports set a custom title bar widget officially, no need to use this library, and this library is known to be not working well for QDockWidgets. Please refer to <https://doc.qt.io/qt-6/qdockwidget.html#setTitleBarWidget> for more details.
- Only top level windows ([QWindow](https://doc.qt.io/qt-6/qwindow.html) and [QWidget](https://doc.qt.io/qt-6/qwidget.html)) are supported.
## Requirements ## Requirements
| Component | Requirement | Additional Information | | Component | Requirement | Additional Information |

View File

@ -28,7 +28,7 @@ widget.show();
Please refer to [the QWidget example](/examples/QWidget/main.cpp) for more detailed information. Please refer to [the QWidget example](/examples/QWidget/main.cpp) for more detailed information.
### Ignore areas and etc ### Some details
```cpp ```cpp
QWindow *win = widget.windowHandle(); QWindow *win = widget.windowHandle();
@ -46,6 +46,11 @@ WinNativeEventFilter::setIgnoredObjects(win, {ui->minimizeBtn, ui->closeBtn});
win->setFlag(Qt::MSWindowsFixedSizeDialogHint); win->setFlag(Qt::MSWindowsFixedSizeDialogHint);
``` ```
## IMPORTANT NOTES
- For [QDockWidget](https://doc.qt.io/qt-6/qdockwidget.html), it supports set a custom title bar widget officially, no need to use this library, and this library is known to be not working well for QDockWidgets. Please refer to <https://doc.qt.io/qt-6/qdockwidget.html#setTitleBarWidget> for more details.
- Only top level windows ([QWindow](https://doc.qt.io/qt-6/qwindow.html) and [QWidget](https://doc.qt.io/qt-6/qwidget.html)) are supported.
## Supported Platforms ## Supported Platforms
Windows 7 ~ 10, 32 bit & 64 bit. Windows 7 ~ 10, 32 bit & 64 bit.