highdpi

QT High DPI Support on Windows

天大地大妈咪最大 提交于 2019-12-22 07:07:15
问题 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 have a chance to do it right from the ground up. I understand that I would have to use layouts instead of fixed positioning etc, but there always going to be cases in which I would have to specify, for example a minimum/maximum size of a control. I

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

杀马特。学长 韩版系。学妹 提交于 2019-12-21 08:09:19
问题 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 UserControl to turn off scalling? If not, how can I do that? 回答1: in addition the the DpiDecorator, you will also need to fix the font size of your items. For example, in Windows XP, if your setting is set to Large Fonts, Menu Item font size is

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

痴心易碎 提交于 2019-12-21 04:32:12
问题 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 & graphics (plus doesn't play well with Cleartype, as it results in colour fringing after pixel doubling). Example: qplot(Sepal.Length, Petal.Length, data = iris, color = Species, size = Petal.Width, alpha = I(0.7)) with zoom in RStudio set to 200%

Supporting DPI and Default Font Changes

不羁岁月 提交于 2019-12-18 03:03:12
问题 So I'm trying to figure out how the Form's AutoScaleMode property can possibly help to support a system with a font or DPI that is different from my work development machine. From the SDK: AutoScaleMode Enumeration public enum AutoScaleMode None Automatic scaling is disabled. Font Controls scale relative to the dimensions of the font the classes are using, which is typically the system font. Dpi Controls scale relative to the display resolution. Common resolutions are 96 and 120 DPI. By

How do I get the WVGA Android browser to stop scaling my images?

本秂侑毒 提交于 2019-12-17 22:31:33
问题 I'm designing an HTML page for display in Android browsers. Consider this simple example page: <html> <head><title>Simple!</title> </head> <body> <p><img src="http://sstatic.net/so/img/logo.png"></p> </body> </html> It looks just fine on the standard HVGA phones (320x480), but on HDPI WVGA sizes (480x800 or 480x854) the built-in browser automatically scales the image up; it looks ugly. I've read that I should be able to use this tag to force the browser to stop scaling my page: <meta name=

Automatic rescaling of an application on high-dpi Windows platform?

血红的双手。 提交于 2019-12-17 06:09:19
问题 I'm writing a Qt application that needs to run on high-dpi Windows (192dpi instead of 96dpi). Unfortunately the Qt framework does not have support for high-dpi yet (at least on Windows), so my application and all its elements looks half the size it should. Is there any way to force/simulate automatic upscaling of such apps by Windows? 回答1: Applications that use fixed coordinates and sizes will look small on high-DPI resolutions. Although even if using layouts there are some issues regarding

WPF Application Blurry on High DPI Screen on Windows 10

元气小坏坏 提交于 2019-12-14 03:57:29
问题 Do WPF applications normally scale correctly on high DPI screens out of the box (without further customisation of a manifest etc?). It was my understanding they did? Two WPF applications I have written both appear blurry on my new laptop (running Windows 10) when viewed on the laptop screen. Normally the laptop has it's primary display set to be an external low-dpi monitor and the built-in laptop panel is scaling at 125%. However, the blurriness appears regardless of whether the low-dpi

How can I scale fonts on a high resolution screen?

拈花ヽ惹草 提交于 2019-12-12 09:37:40
问题 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 case it would have <80px), is a poor choice. 72 DPI screens show it very large. How can I make the fonts scalable so that the program conforms to its size, or the user gets the possibility of setting? 回答1: You can change the default font size in a

How to detect native screen resolution or scaling factor of the secondary monitor at Windows 10

两盒软妹~` 提交于 2019-12-11 16:55:08
问题 Have two monitors: secondary to the left from primary. Resolutions: Primary: 2560*1440 scaling 100% Secondary: 1920*1200 scaling 150% At the program start it does EnumDisplayMonitors which gives following RECTs: Primary: 0,0,2560,1440 Secondary: -1920,0,-640,800 Also I tried the code: int width, height; RECT rect = { -1920, 0, -640, 800 }; SystemParametersInfoA(SPI_SETWORKAREA, 0, &rect, 0); width = GetSystemMetrics(SM_CXSCREEN); height = GetSystemMetrics(SM_CYSCREEN); but width and height

how to differentiate the 480X800 and 480X854 screens in android?

无人久伴 提交于 2019-12-10 17:41:32
问题 how to differentiate the 480X800 and 480X854 screens. we have an option to put the one image at the hdpi folder.in my case 480X800 image is does not support for the 480X854 image. it shows a blank space at the bottom.Any Idea? Edit: i set the image as a background. on my layout i have transparent image views with margins. if i click the image view it do some task. but between these two screens. i can adjust the value for one. in another one the image was strectched slightly. then what can i