Merge pull request #20013 from tringenbach/feature/show-device-pixel-ratio

Add devicePixelRatio to about info
This commit is contained in:
Max Wilfinger
2025-03-06 08:00:08 +00:00
committed by GitHub

View File

@@ -732,10 +732,12 @@ void AboutDialog::copyToClipboard()
<< QString::fromStdString(theme) << "/" << QString::fromStdString(style) << "\n";
// Add DPI information
str << "Logical/physical DPI: "
str << "Logical DPI/Physical DPI/Pixel Ratio: "
<< QApplication::primaryScreen()->logicalDotsPerInch()
<< "/"
<< QApplication::primaryScreen()->physicalDotsPerInch()
<< "/"
<< QApplication::primaryScreen()->devicePixelRatio()
<< "\n";
// Add installed module information: