forked from github_mirror/framelesshelper
Update README
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
e0b5244420
commit
2e6750e0b4
|
@ -57,7 +57,7 @@ win->setMaximumSize(1280, 720);
|
|||
// Minimum window size
|
||||
win->setMinimumSize(800, 540);
|
||||
// The **POINTER** of a QWidget or QQuickItem
|
||||
FramelessWindowsManager::addIgnoreObject(win, ui->pushButton_minimize);
|
||||
FramelessWindowsManager::setHitTestVisibleInChrome(win, ui->pushButton_minimize, true);
|
||||
```
|
||||
|
||||
## IMPORTANT NOTES
|
||||
|
|
|
@ -25,7 +25,7 @@ widget.show();
|
|||
### Some details
|
||||
|
||||
```cpp
|
||||
helper.setIgnoreAreas(&widget, {{0, 0, 30, 40}, {40, 0, 30, 40}});
|
||||
helper.setHitTestVisibleInChrome(window, widget, true);
|
||||
```
|
||||
|
||||
## IMPORTANT NOTES
|
||||
|
|
|
@ -41,7 +41,7 @@ win->setMaximumSize(1280, 720);
|
|||
// Minimum window size
|
||||
win->setMinimumSize(800, 540);
|
||||
// The **POINTER** of a QWidget or QQuickItem
|
||||
WinNativeEventFilter::setIgnoredObjects(win, {ui->minimizeBtn, ui->closeBtn});
|
||||
WinNativeEventFilter::setHitTestVisibleInChrome(win, ui->minimizeBtn, true);
|
||||
// The frameless window is resizable by default.
|
||||
win->setFlag(Qt::MSWindowsFixedSizeDialogHint);
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue