title: How to hide some of the categories in QBarCategoryAxis in Qt
body: <p>I did not find a way to hide some of the categories in <code>QBarCategoryAxis</code> when I create a chart. If I do not specify the category for axis, by default the categories will be like from 1 to <code>QBarSet</code> size. If I specify the category, how am I able to only display some of the categories in axis. For example: how to only display the first and last categories and the category in the middle in <code>QBarCategoryAxis</code>? 
  <br><br><b>Edit:</b><br>
  Currently what I get is like this:<a href="https://i.stack.imgur.com/amgsH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/amgsH.png" alt="enter image description here"></a></p>
  
  <p>I have one <code>QBarSet</code> which has 6 elements. And I did not set the category text, so by default those category texts are from 1 to 6. what I want is to display some of the category texts, like to only display 1, 3, 6 and the rest of the text(2, 4, 5) are hidden.<br><br>
  <b>Why I want to do this?</b><br>
  Because when the <code>QBarSet</code> has more elements and when I specify the category texts by myself, usually I need to maximize the window so I can see all the category texts which are displayed in the axisX. But I just want the chart to have a fixed size, so as for the texts, I just want a part of them are being displayed. <br>
  BTW, this will be what looks like if a bar set has lots of elements, and the texts below will not be full displayed until I maximize the window.
  <a href="https://i.stack.imgur.com/FkayX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FkayX.png" alt="enter image description here"></a>
  <br><b>Edit 2:</b><br>
  This is what I want I want the chart looks like:<a href="https://i.stack.imgur.com/FCmoy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FCmoy.png" alt="enter image description here"></a></p>
  
  <p>As you can see, below the axis x, it only has 5 texts. </p>