Answer the question
In order to leave comments, you need to log in
Qt: how to adjust high DPI in QTableView?
I continue to use Qt and QTableView. The following was found: on a large DPI, the text in the table is cut off.
What is the best way to adjust line height to monitor DPI?
UPD. I tried to adjust the automatic installation of sizes - it did not help. Large amounts of data are brutally slow. I try further.
Answer the question
In order to leave comments, you need to log in
I got the font through QFontMetrics and set its size, it seems to work.
Regarding DPI, the following information may be very useful to you: doc.qt.io/qt-5.5/highdpi.html .
Try playing around with the QT_DEVICE_PIXEL_RATIO environment variable , maybe your application will look nice on your high DPI monitor.
qputenv("QT_DEVICE_PIXEL_RATIO", "auto");
// or
qputenv("QT_DEVICE_PIXEL_RATIO", "2");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question