I created a derivative of the QTableWidget, and in its .h file I set the stylesheet
setStyleSheet(
"background-color: #2F2F2F;"
"border: 1px solid #4181C0;"
"color: #4181C0;"
"selection-background-color: #4181C0;"
"selection-color: #FFF;"
"QHeaderView::section {"
"border-top: 0px solid 4181C0;"
"border-bottom: 1px solid 4181C0;"
"border-right: 1px solid 4181C0;"
"background:#2F2F2F;"
"color: #4181C0;"
"}"
);
setStyleSheet(
"background-color: #2F2F2F;"
"border: 1px solid #4181C0;"
"color: #4181C0;"
"selection-background-color: #4181C0;"
"selection-color: #FFF;"
"QHeaderView::section {"
"border-top: 0px solid 4181C0;"
"border-bottom: 1px solid 4181C0;"
"border-right: 1px solid 4181C0;"
"background:#2F2F2F;"
"color: #4181C0;"
"}"
);
To copy to clipboard, switch view to plain text mode
This is the output:
dtw.jpg
How can I make the vertical scrollbar remain unstyled? I know I should write
setStyleSheet(
"<something> {"
"background-color: #2F2F2F;"
"border: 1px solid #4181C0;"
"color: #4181C0;"
"selection-background-color: #4181C0;"
"selection-color: #FFF;"
"};"
"QHeaderView::section {"
"border-top: 0px solid 4181C0;"
"border-bottom: 1px solid 4181C0;"
"border-right: 1px solid 4181C0;"
"background:#2F2F2F;"
"color: #4181C0;"
"}"
);
setStyleSheet(
"<something> {"
"background-color: #2F2F2F;"
"border: 1px solid #4181C0;"
"color: #4181C0;"
"selection-background-color: #4181C0;"
"selection-color: #FFF;"
"};"
"QHeaderView::section {"
"border-top: 0px solid 4181C0;"
"border-bottom: 1px solid 4181C0;"
"border-right: 1px solid 4181C0;"
"background:#2F2F2F;"
"color: #4181C0;"
"}"
);
To copy to clipboard, switch view to plain text mode
Can you tell me what is "<something>"?
Thank you in advance
Bookmarks