Set high DPI scaling | Qt Creator Documentation

- Qt Creator Documentation
- Set high DPI scaling
- Qt Creator 19.0.1

Preview images ◦ Set the number of recent files shown

# Set high DPI scaling

The operating systems that Qt Creator supports implement high dots-per-inch (DPI) scaling at varying levels. Therefore, Qt Creator handles high DPI scaling differently on different operating systems:

- On macOS, Qt Creator forces high DPI scaling, which means that it allows Qt to use the system scaling factor as the Qt Creator scaling factor.
- On Linux, Qt Creator leaves it to the user to enable high DPI scaling because the process varies so much on different distributions and windowing systems that it cannot be reliably done automatically.

Setting the scale factor or DPI to the exact physical display DPI may not give good visual results due to the fractional scaling involved. Rounding the scale factor to 25% increments can improve the results.

To set the DPI rounding policy:

1. Select Preferences > Environment > Interface.

2. In DPI rounding policy, select an option to round DPI up or down.
3. Restart Qt Creator to have the change take effect.

See also How to: Adapt the UI and Adapting the UI.

Preview images ◦ Set the number of recent files shown