I have QStackedwidget in my application, In the first page, i have tablewidget.
i want to set stylesheet for Qtablewidget headerview.
but i can't able to set stylesheet.

I have tried following ways,

this->setStyleSheet(
" QHeaderView::section {"
" background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,"
" stop:0 #616161, stop: 0.5 #505050,"
" stop: 0.6 #434343, stop:1 #656565);"
" color: white;"
" padding-left: 4px;"
" border: 1px solid #6c6c6c;"
"}");

this->setStyleSheet( QStackedWidget QWidget#page { "
" QHeaderView::section {"
" background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,"
" stop:0 #616161, stop: 0.5 #505050,"
" stop: 0.6 #434343, stop:1 #656565);"
" color: white;"
" padding-left: 4px;"
" border: 1px solid #6c6c6c;"
"}"
"}");

but it is not working.