[Lazarus] Qt doesn't return proper DC Device Size

Giuliano Colla giuliano.colla at fastwebnet.it
Sat May 16 17:54:06 CEST 2015


Il 16/05/2015 14:27, zeljko ha scritto:
> On 05/16/2015 02:15 PM, Giuliano Colla wrote:
>>
>> While trying to obtain programmatically the snapshot of a window, I
>> stumbled into a Qt bug.
>>
>> It turned out that TQtDeviceContext.getDeviceSize always returns a size
>> of 10x10 for any widget I tried.
>> It returns the proper size only for the full screen (i.e. if DC=0).
>>
>> For sake of completeness, GTK2 returns the proper size.
>>
>> Can it be fixed?
>
> And attach example project please.
>

Done:

http://bugs.freepascal.org/view.php?id=28106

Thanks,

Giuliano


-- 
Giuliano Colla

Project planning question: when it's 90% done, are we halfway or not yet?





More information about the Lazarus mailing list