Qt WS doesn't return proper DC Device Size
Original Reporter info from Mantis: giuliano
-
Reporter name: G. Colla
Original Reporter info from Mantis: giuliano
- Reporter name: G. Colla
Description:
A call to Bitmap.LoadFromDevice doesn't return the proper widget bitmap, but just a 10x10 meaningless bitmap.
A quick investigation shows that the call to TQtDeviceContext.getDeviceSize returns a 10x10 size.
But if the DC is set to 0 (i.e. full screen) then the call is successful.
This problem doesn't show in GTK2.
Attached a minimal project which shows the problem.
Mantis conversion info:
- Mantis ID: 28106
- OS: CentOs
- OS Build: 6.6
- Platform: Linux
- Version: 1.4
- Fixed in version: 1.5 (SVN)
- Fixed in revision: 49081 (#381c4684)
- Target version: 1.4.2