We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
禁用窗口大小调整依旧可以通过拖动标题栏到桌面顶部最大化窗口 如何禁用拖动贴边调整窗口大小的功能
Environment
To Reproduce
设置禁止调制窗口大小 拖动窗口到桌面顶部 窗口最大化 设置.setFixedSize属性后 窗口不会最大化 但是显示异常 设置.setWindowFlags(Qt.FramelessWindowHint)窗口也不会最大化 但是会失去阴影
Code
from PySide6 import QtWidgets from PySide6.QtCore import Qt from qframelesswindow import FramelessWindow class MainWindow(FramelessWindow): def __init__(self): super().__init__() self._isResizeEnabled = False self.setResizeEnabled(False) self.titleBar.maxBtn.hide() self.titleBar._isDoubleClickEnabled = False self.setFixedSize(200, 100) self.setWindowFlags(Qt.FramelessWindowHint) if __name__ == "__main__": app = QtWidgets.QApplication([]) window = MainWindow() window.show() app.exec()
Expected behavior
禁用调整窗口大小时,禁用拖动窗口到桌面顶部时窗口自动最大化
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
禁用窗口大小调整依旧可以通过拖动标题栏到桌面顶部最大化窗口 如何禁用拖动贴边调整窗口大小的功能
Environment
To Reproduce
设置禁止调制窗口大小
拖动窗口到桌面顶部 窗口最大化
设置.setFixedSize属性后 窗口不会最大化 但是显示异常
设置.setWindowFlags(Qt.FramelessWindowHint)窗口也不会最大化 但是会失去阴影
Code
Expected behavior
禁用调整窗口大小时,禁用拖动窗口到桌面顶部时窗口自动最大化
The text was updated successfully, but these errors were encountered: