提交 dae54232 编写于 作者: 之一Yo's avatar 之一Yo

fixes #24

上级 d3982d7f
......@@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/ma
:license: MIT, see LICENSE for more details.
"""
__version__ = "0.3.2"
__version__ = "0.3.3"
from .components import *
from .common import *
......
......@@ -88,6 +88,7 @@ def drawIcon(icon, painter, rect):
icon.render(painter, rect)
else:
icon = QIcon(icon)
rect = QRectF(rect).toRect()
image = icon.pixmap(rect.width(), rect.height())
painter.drawPixmap(rect, image)
......
......@@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f:
setuptools.setup(
name="PyQt-Fluent-Widgets",
version="0.3.2",
version="0.3.3",
keywords="pyqt fluent widgets",
author="zhiyiYo",
author_email="shokokawaii@outlook.com",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册