[Help] Spreadsheets: change cell default color

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
pablogil
Posts: 882
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

[Help] Spreadsheets: change cell default color

Post by pablogil »

Hi,

I'm struggling trying to find the Qt element of Spreadsheet Workbench default cells in order to style them with a stylesheet.
The default color is black and I'm unable to change/style it... any guru knows how I can access it via spreadsheets or, at least, tell me what element is?

I have tried:

Code: Select all

QTableWidget,
QTableView,
QTableView::item {
    color: red;
}
But none of them works...

The curious thing is that I can actually style the selected cell with:

Code: Select all

QTableView::item:selected  {
    color: #1b3774;
}
Thanks
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
Post Reply