Hi, sorry to bring this article up, but I really need some help.
Here's my code:
QPalette palette
= ui
->tableWidget
->palette
();
ui->tableWidget->setPalette(palette);
ui->tableWidget->show();
QPixmap pixmap("anime.jpg");
QPalette palette = ui->tableWidget->palette();
palette.setBrush(QPalette::Base, QBrush(pixmap));
ui->tableWidget->setPalette(palette);
ui->tableWidget->show();
To copy to clipboard, switch view to plain text mode
What did I do wrong, that only the background behind cells gets colored?
Cells are still white.
I'm using designer.
Here's image of the problem.
problem.jpg
Is there an easy way to make cells transparent or somehow use the image as background?
Any help would be appreciated.
Bookmarks