Am 19.03.2013 um 14:19 schrieb Hamish Moffatt <ham...@risingsoftware.com>:

> On 19/03/2013 10:55 PM, Rutledge Shawn wrote:
>> On 19 Mar 2013, at 11:27 AM, Hamish Moffatt wrote:
>> 
>>> Is it possible to apply a scaling to all font sizes used in an application?
>>> 
>>> I can see Qt is doing the right thing by converting point sizes to pixel
>>> sizes in accordance with the DPI of the display. Now suppose I want to
>>> override the DPI, or redefine point to be other than 1/72" (achieves the
>>> same). Is this possible?
>> Unless you are on MacOS, you can override the DPI system-wide.  X11 has 
>> multiple ways (xorg.conf, and startx -- -dpi 72 or whatever); in Windows you 
>> can do it in the display control panel.
> I'd like to do it in the application, not system-wide. Can I override 
> the DPI that Qt has detected from the OS somehow?

Did you try 

  http://qt-project.org/doc/qt-5.0/qtwidgets/qapplication.html#styleSheet-prop

and setting the QFont property?

Cheers,
  Oliver
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to