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
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
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
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
: 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
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
* 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:
>>
)...
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
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
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
10 matches
Mail list logo