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

修复清空下拉框选项时没有更新文本的问题

上级 40415468
......@@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/ma
:license: GPLv3, see LICENSE for more details.
"""
__version__ = "0.6.6"
__version__ = "0.6.7"
from .components import *
from .common import *
......
......@@ -243,6 +243,9 @@ class ComboBoxBase(QObject):
def clear(self):
""" Clears the combobox, removing all items. """
if self.currentIndex() >= 0:
self.setText('')
self.items.clear()
self.itemMap.clear()
self._currentIndex = -1
......
......@@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f:
setuptools.setup(
name="PyQt-Fluent-Widgets",
version="0.6.6",
version="0.6.7",
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.
先完成此消息的编辑!
想要评论请 注册