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

can not change the background colors of individual headerItem in TableWidget #257

Open
mrhaa opened this issue Jan 19, 2024 · 0 comments
Open

Comments

@mrhaa
Copy link

mrhaa commented Jan 19, 2024

Hello and thank you for the awesome work.

I've faced the issue;
I cannot change the background colors of individual headerItem in TableWidget.

I'd like to change the background color of the first column header.

hi = QTableWidgetItem()
hi.setText("Header1")
hi.setBackground(QColor('red'))

table.setHorizontalHeaderItem(0, hi)

but nothing happens.

Is there any solution?

Thanks in advance.

@mrhaa mrhaa changed the title can not change the background colors of headerItem in TableWidget can not change the background colors of individual headerItem in TableWidget Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant