I have a graph rendered with Q3DBars (Qt 6.6), and I have defined a dark theme forthe graph using Q3DThemes. The prblem is, when I set the graph theme to a Qt Built-in theme (for example Q3DTheme::ThemeArmyBlue) the texts on the graph are perfectly clear and readable, but when I set the theme to the one I have defined, the texts look jagged, pixlish and not pleasant to read from the same angle and distance as before. Is there a way to smoothen the text upon the graph rendering, by for example setting a specific rendering hint? I really need a good text quality for my graph.
For better comparison, here are two pics. First when the graph theme is a Qt Theme, and then when it’s set to my own defined theme. The scrrenshots are taken from the exactly same distance and angle:
Here’s my snippet:
QList<QColor> barColors = {QColor(144, 224, 239)};
_bars->activeTheme()->setBaseColors(barColors);
_bars->activeTheme()->setBackgroundColor(QColor(0, 29, 61));
_bars->activeTheme()->setWindowColor(QColor(8, 2, 28));
_bars->activeTheme()->setSingleHighlightColor(QColor(66, 165, 245));
_bars->activeTheme()->setLabelTextColor(QColor(255,255,255));
_bars->activeTheme()->setMultiHighlightColor(QColor(13, 71, 161));
_bars->activeTheme()->setGridLineColor(QColor(255,255,255));
The difference is very small, but upon having so much data on the graph the font would really give anyone a bad headache.