Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 522 Bytes

File metadata and controls

15 lines (10 loc) · 522 Bytes

QSplitter

1、分割窗口的分割条重绘

运行 RewriteHandle.py

  1. 原理在于QSplitter在创建分割条的时候会调用createHandle函数
  2. 通过重新写createHandle返回自己的QSplitterHandle
  3. 通过QSplitterHandlepaintEvent实现绘制其它形状,
  4. 重写mousePressEventmouseMoveEvent来实现鼠标的其它事件

RewriteHandle