win.setMaximumSize(width, height)

用途:设置窗口的最大宽高

  • width Integer - 窗口最大宽度
  • height Integer - 窗口最大高度