PDA

View Full Version : StyleSheet problem



fmariusd
22nd February 2010, 16:10
Hi,
when i put the following stylesheet to :



ui.tableView->verticalHeader()->setStyleSheet(
" QHeaderView::section { background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #616161, stop: 0.5 #d6d6d6,"
" stop:1 #616161); color: white; padding-left: 0px; border: 1px solid #6c6c6c; } ");


it makes the background gradient only to the first cell, say i have 4 rows , so the gradient should be in 4 cells for the vertical header but it s only in the first , the other cells ar filled with normal colors

for horizontal header it works just fine .

Thanks