Skip to content

Windows上禁用缩放后,仍然会触发Windows的自动布局 #205

@MoConWu

Description

@MoConWu

Describe the bug
A clear and concise description of what the bug is.
即便给窗口指定了 setResizeEnable(False),当窗口挪动到显示器顶部,还是会弹出自动布局的提示,并且可以改变尺寸

Environment
环境信息

  • OS: Windows11(Windows10没有测试)
  • DPI scaling: [e.g. 100%]
  • Python: 3.7
  • PyQt5: PySide2

To Reproduce
打开窗口后,把窗口往桌面顶上挪动,打开Windows系统自带的辅助布局
Image

Code
最小复现代码

# coding:utf-8
import sys

from PySide2.QtCore import QRect, QSize, Qt
from PySide2.QtGui import QColor, QPixmap, QIcon
from PySide2.QtWidgets import QApplication, QLabel

from qframelesswindow import FramelessWindow

class Window(FramelessWindow):
    def __init__(self, parent=None):
        super().__init__(parent=parent)
        self.setResizeEnabled(False)

app = QApplication(sys.argv)
demo = Window()
demo.show()
sys.exit(app.exec_())

Expected behavior
正常复现

Screenshots
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions