corner problem.png

I'm having a problem with my header on a QTreeWidget. I've been trying to use a border radius on both the tree and the header, but around the header I get this white space where the corners would be if they were not rounded. See image. What I want it to do is show the background image instead of the white space. This works on the bottom of the QTreeWidget, so I'm fairly certain the problem is with the QHeaderView. I've tried various methods to fix this but have been unable to so far. Any help would be appreciated.

Here are the stylesheets ive used for these widgets:

Qt Code:
  1. background-color: rgb(40, 41, 46);
  2. color: rgb(203,204,207);
  3. padding: 0px 0px 0px 0px;
  4. outline: none;
  5. border: 0px;
  6. margin: 0px;
  7. border-radius: 7px;
  8. }
  9.  
  10. QTreeWidget::item:hover {
  11. background-color: #202020;
  12. color: #7ea229;
  13. }
  14.  
  15. QTreeWidget::item:selected:active:!hover
  16. {
  17. background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #88af2c, stop: 1 #718b31);
  18. }
  19.  
  20. QTreeWidget::item:selected:!active:!hover
  21. {
  22. background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #88af2c, stop: 1 #718b31);
  23. }
  24.  
  25. QTreeWidget::branch:selected:closed:has-children:has-siblings {
  26. background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #88af2c, stop: 1 #718b31);
  27. }
  28.  
  29. QTreeWidget::branch:selected:open:has-children:has-siblings {
  30. background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #88af2c, stop: 1 #718b31);
  31. }
  32. QHeaderView::section {
  33. padding: 4px;
  34. font: bold 11pt;
  35. color: rgb(203, 204, 207);
  36. background-color: rgb(26,27,31);
  37. border-top-left-radius: 7px;
  38. border-top-right-radius: 7px;
  39. }
  40.  
  41. #catalogueItemHierarchyTree
  42. {
  43. border: 0px;
  44. background-image: url(:/please-wait-bg200.png);
  45. background-repeat: none;
  46. background-position: center;
  47. }
To copy to clipboard, switch view to plain text mode