-
Type:
Bug
-
Status: Reported
-
Priority:
P3: Somewhat important
-
Resolution: Unresolved
-
Affects Version/s: 5.15.0
-
Fix Version/s: None
-
Component/s: GUI: High-DPI
-
Labels:
-
Platform/s:
With 4K screen and scaling is set to 200%,
enabling AA_EnableHighDpiScaling (QApplication::setAttribute(Qt::AA_EnableHighDpiScaling),
crops the labels (Axis, title, chart's name etc.. ) of ChartView.
The problem is much more subtle with Qt5.14.2.
How to reproduce :
1. Use QML charts example https://doc.qt.io/qt-5/qtcharts-qmlchart-example.html
2. Add this in main()
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling)
One of possible workaround is to add an extra space e.g.
ValueAxis
{
id: axisY
labelFormat: "%.1f "
}