Home > Back-end >  QT QTableView header towing separation line how to set up the picture?
QT QTableView header towing separation line how to set up the picture?

Time:11-29

Set up complete QTableView style and QHeaderView style after every line is missing
PQHeaderView - & gt; SetStyleSheet
(
"QHeaderView: : down - arrow {subcontrol - position: center right; Image: url (:/bk/Resources/headerdowmselected PNG); Padding - right: 8 px; }
""QHeaderView: : the up arrow - {subcontrol - position: center right; Image: url (:/bk/Resources/headerupselected PNG); Padding - right: 8 px; }
""QHeaderView: : section {background - color: RGB (255255255); Border - left: 0 px; Border - right: 0 px; Border - top: 0 px; Border - bottom: 1 px solid RGB (223, 223, 223); }
"

);
M_pTableView - & gt; SetStyleSheet QTableView: : section (" {border - left: 0 px; Border - right: 0 px; Border - top: 1 px solid RGB (181, 183, 184); Border - bottom: 0 px solid RGB (181, 183, 184); } ");
  • Related