Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: TreeWidget with multiple columns doesn't return the correct color in all columns after being selected and hovered #618

Open
apooreapo opened this issue Nov 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@apooreapo
Copy link

What happened?

When creating a TreeWidget with multiple columns, there seems to exist a bug with the hovering color of the item. If you select an item, and then hover on it, the color will change, but only for the specific column. The color on the other columns will remain the same.

20231112_182856.mp4

Operation System

Windows 10

Python Version

3.9.13

PyQt/PySide Version

6.5.2

PyQt/PySide-Fluent-Widgets Version

1.3.8

How to Reproduce?

Just create a simpmle TreeWidget with two columns. Then add some test data. Run the application, select an item, slowly hover on it and the bug will be reproduced.

Minimum code

tree_widget = TreeWidget()
tree_widget.setColumnCount(2)
tree_widget.setHeaderLabels(['Column 1', 'Column 2'])
tree_widget.setHeaderHidden(True)
item1 = QTreeWidgetItem(16, ["test12345", "test"])
item2 = QTreeWidgetItem(['test 1234', "8,50 €"])
item3 = QTreeWidgetItem(["test 4444334", "19,00 €"])
item4 = QTreeWidgetItem(["hello world", "10,00 €"])
item1.addChildren([
            item2,
            item3,
            item4,
])
tree_widget.addTopLevelItem(item1)

After that just show the tree_widget somewhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant