PyQt/气泡提示/README.md
2018-01-27 22:26:11 +08:00

12 lines
No EOL
398 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 简单的右下角气泡提示
### 原理思路:
- 1.使用QWidget包含一个QLabel其中QWidget通过paintEvent绘制气泡形状
- 2.使用QPropertyAnimation属性动画来移动气泡和改变气泡的透明度
- 3.使用QParallelAnimationGroup动画组来同时运行两个动画
见 [Issues#3](https://github.com/892768447/PyQt/issues/3)
截图
![1](ScreenShot/1.gif)