Re: [Interest] DPI

2014-02-25 Thread Thiago Macieira
Em ter 25 fev 2014, às 13:07:27, Jan Kundrát escreveu: > On Sunday, 23 February 2014 13:24:54 CEST, igor.mironc...@gmail.com wrote: > > QApplication::desktop()->physicalDpiY() > > In addition to what has already been said, note that the value is not > updated after the application has started. In

Re: [Interest] DPI

2014-02-25 Thread Jan Kundrát
On Sunday, 23 February 2014 13:24:54 CEST, igor.mironc...@gmail.com wrote: > QApplication::desktop()->physicalDpiY() In addition to what has already been said, note that the value is not updated after the application has started. In X11, the actual DPI can very well change (for example when swit

Re: [Interest] DPI

2014-02-23 Thread igor.mironchik
Andre Somers Subject: Re: [Interest] DPI On Sunday 23 February 2014, igor.mironc...@gmail.com wrote: > QScreen::physicalDotsPerInch returns the same value as > QDesktopWidget::physicalDpi. > > But why do you think that QScreen::physicalDotsPerInch more reliable? > > P.S. I did not look

Re: [Interest] DPI

2014-02-23 Thread Allan Sandfeld Jensen
On Sunday 23 February 2014, igor.mironc...@gmail.com wrote: > QScreen::physicalDotsPerInch returns the same value as > QDesktopWidget::physicalDpi. > > But why do you think that QScreen::physicalDotsPerInch more reliable? > > P.S. I did not look at the Qt code yet, but I guess that I have to do i

Re: [Interest] DPI

2014-02-23 Thread igor.mironchik
: Sunday, February 23, 2014 4:10 PM To: interest@qt-project.org Cc: igor.mironc...@gmail.com ; Andre Somers Subject: Re: [Interest] DPI On Sunday 23 February 2014, igor.mironc...@gmail.com wrote: > I’m absolutely sure that Qt determines DPI wrong. > > I’ve received from Qt that my screen ha

Re: [Interest] DPI

2014-02-23 Thread Allan Sandfeld Jensen
On Sunday 23 February 2014, igor.mironc...@gmail.com wrote: > I’m absolutely sure that Qt determines DPI wrong. > > I’ve received from Qt that my screen has 72 DpiY, where actually it has > 130. > > So my question is what can I use else then QDesktopIWidget::physicalDpiY()? > I find QScreen::phy

Re: [Interest] DPI

2014-02-23 Thread Constantin Makshin
* interest@qt-project.org <mailto:interest@qt-project.org> > *Subject:* Re: [Interest] DPI > > igor.mironc...@gmail.com schreef op 23-2-2014 13:24: >> Hi. >> >> I want to determine how much pixels in 10 mm. >> >> I use the next calculations: >>

Re: [Interest] DPI

2014-02-23 Thread igor.mironchik
)... From: Andre Somers Sent: Sunday, February 23, 2014 1:30 PM To: interest@qt-project.org Subject: Re: [Interest] DPI igor.mironc...@gmail.com schreef op 23-2-2014 13:24: Hi. I want to determine how much pixels in 10 mm. I use the next calculations: static const qreal fingerSize

Re: [Interest] DPI

2014-02-23 Thread Andre Somers
igor.mironc...@gmail.com schreef op 23-2-2014 13:24: Hi. I want to determine how much pixels in 10 mm. I use the next calculations: staticconstqrealfingerSize=0.0393700787*10; staticconstqrealh= (qreal)QApplication::desktop()->physicalDpiY()*fingerSize; And this calculations return to me 28 tha

[Interest] DPI

2014-02-23 Thread igor.mironchik
Hi. I want to determine how much pixels in 10 mm. I use the next calculations: static const qreal fingerSize = 0.0393700787 * 10; static const qreal h = (qreal) QApplication::desktop()->physicalDpiY() * fingerSize; And this calculations return to me 28 that on my desktop is 5 mm only. 0.039