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

2015-05-18 Thread Giuliano Colla
Il 16/05/2015 17:54, Giuliano Colla ha scritto: http://bugs.freepascal.org/view.php?id=28106 Now it works like a charm. I've closed the issue. Thank you Zeljko, Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

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

2015-05-16 Thread vfclists .
On 16 May 2015 at 13:27, zeljko zel...@holobit.net wrote: 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

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

2015-05-16 Thread Giuliano Colla
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

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

2015-05-16 Thread zeljko
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

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

2015-05-16 Thread zeljko
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