Re: [Lazarus] Qt doesn't return proper DC Device Size
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Qt doesn't return proper DC Device Size
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 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. zeljko I just checked your fix from the Caret.Y function for getting the current line in a memo and it is working fine. I will be learning Qt from following your patches. :) -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Qt doesn't return proper DC Device Size
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? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Qt doesn't return proper DC Device Size
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? Of course. Pls. open an issue about it. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Qt doesn't return proper DC Device Size
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. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus