@kugiigi
Can you give the exact code of a program that will return the dpi?
Note that I'm trying to scale a non-Qt application, so I can use a secondary qt utility to get the screen density, but nothing more.
What I have tried that does not give good results is:
#include <QGuiApplication>
#include <QScreen>
#include <QDebug>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
QGuiApplication app(argc, argv);
QScreen *screen = QGuiApplication::primaryScreen();
qreal dpi = screen->logicalDotsPerInch(); // Moyenne approximative
cout << dpi <<endl;
return 0;
}