Questions tagged [highdpi]

205 questions
15
votes
1 answer

How to approach development of new Qt 5.7+ High-DPI Per Monitor DPI Aware application?

I have read the official Qt documentation and many articles and questions on StackOverflow about high DPI support in Qt. All of them focus on porting old applications and making them work with as least changes as possible. But if I were to start a…
michnovka
  • 2,880
  • 3
  • 26
  • 58
13
votes
3 answers

How to prevent WPF from scaling with the Windows font size options?

I don't want my WPF GUI to scale with Windows font size options (DPI). It's not just a matter of specifying a fixed font size on the UserControl because scaling affects images and borders in the UserControl. Is there a property that I can set on the…
Sylvain
  • 19,099
  • 23
  • 96
  • 145
12
votes
1 answer

Qt: Drawing high DPI QPixmaps

I have written application that draws two smiling faces: First one is painted directly on QWidget: void DirectFace::paintEvent(QPaintEvent *ev) { QPainter painter(this); paintFace(painter); } Second one is painted on a QPixmap, which in…
12
votes
4 answers

Mixed WPF and winforms project DPI awareness

I have a C# program that uses both winforms and WPF and I'm struggling to get it to work in high DPI environments. Currently, if I remove all WPF projects from the solution and run it, it will scale fine, however as soon as I add any wpf back in…
Anya Hope
  • 1,301
  • 1
  • 17
  • 33
10
votes
1 answer

jdk 9 high dpi disable for specific panel

With JDK 9 my swing app works well on Windows with 4k highdpi and normal 1080p normal dpi. Labels, Comboboxes etc. all look nice and are scaled up on the 4k screen. But so is my JPanel where i draw custom images. Can i disable the scaling for this…
Philipp König
  • 357
  • 2
  • 10
9
votes
1 answer

Why doesn't Qt::AA_DisableHighDpiScaling disable high DPI scaling, and why does Qt::AA_EnableHighDpiScaling disable it?

I'm working on a Qt application (deploying to Qt 5.11, but I'm testing on Qt 5.14) that needs to run on a variety of projectors. At least one of these projectors reports a physical size of over one metre, which results in only 32.5 dpi reported to…
Thomas
  • 174,939
  • 50
  • 355
  • 478
9
votes
2 answers

R / RStudio : graph scaling issues & fuzziness on high dpi screens

On high DPI 4K monitors it seems that under Windows the RStudio plot window uses pixel doubling to make the plot legible (I'm using RStudio 0.99.483 and R 3.2.2 and Windows 8.1, but same result under Windows 10). This results in really fuzzy text &…
Tom Wenseleers
  • 7,535
  • 7
  • 63
  • 103
8
votes
1 answer

How can I scale fonts on a high resolution screen?

On a high-resolution screen (my example, Windows 8.1) is my Java application. The menu in particular is very small, and it's almost impossible to select a menu item. In the normal screens (72 DPI) everything is OK. Font with a fixed size (in my…
Andiamo
  • 81
  • 1
  • 2
7
votes
1 answer

Delphi TFontDialog - How to scale for High Dpi?

I would like to use a TFontDialog with Delphi 10.3.3 on a high dpi monitor. But unfortunately Delphi does not really scale the content. (Check where the example (Beispiel) is positioned!) I have 2 monitors. The primary has 96ppi, the other one…
Jens
  • 347
  • 1
  • 12
7
votes
0 answers

Properly handling HighDPI on MacOS with SDL and OpenGL

My attempts at High-DPI rendering on MacOS for my game, Bitfighter, always end up looking bad, like a scaled-up version of a low-res game. The game uses SDL2 + OpenGL and I have correctly enabled the SDL_WINDOW_ALLOW_HIGHDPI window flag as well as…
raptor
  • 799
  • 1
  • 5
  • 16
7
votes
1 answer

WinForms window changes dimensions when it encounters an async call

I have a WinForms project which is several years old and has been retro-fitted with async event-handlers: private async void dgvNewOrders_CellClick(object sender, DataGridViewCellEventArgs e) Inside this method is an async call: var projectTemplate…
awj
  • 7,482
  • 10
  • 66
  • 120
7
votes
2 answers

QT High DPI Support on Windows

According to documentation here http://doc.qt.io/qt-5/highdpi.html QT 5.4+ introduces high DPI support. However, either I’m missing something fundamental or the current support is still in very early stages. I’m writing a brand new application so I…
pullo_van
  • 649
  • 6
  • 19
7
votes
1 answer

How to activate “disable display scaling on high dpi settings” programatically

I am developing Windows form application using C# on Visual Studio 2010. I found that this application is scaled if I used high dpi display setting. But if I activate file property "disable display scaling on high dpi settings" by mouse right click…
Shoji Urashita
  • 826
  • 2
  • 11
  • 22
7
votes
1 answer

How to force an application to use DPI virtualization on Windows 7/8

Is there a way to force an application to use DPI virtualization in Windows 8.1? I have an application that wrongly declares to be DPI aware, and displays too small on my high DPI screen (don't have the source). It would be sufficient if it was…
jdm
  • 9,470
  • 12
  • 58
  • 110
6
votes
3 answers

Command to switch main display scaling to 100%

When opening WinForms controls/forms in Visual Studio 2022 on my high DPI display, this message is being displayed: Scaling on your main display is set to 150%. Restart Visual Studio with 100% scaling I could then click the link and Visual Studio…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
1
2
3
13 14