[Development] Qt 5.1 feature set and freeze date

Poenitz Andre Andre.Poenitz at digia.com
Thu Feb 14 10:39:23 CET 2013


Samuel Rødal wrote:
> What use is a QPlatformPixmapHandle having per-platform typedefs
> (xcb_pixmap_t, HDC, etc) without #ifdefs to manipulate it using native
> code in the first place?
> 
> Can you give a platform-independent example use case? :)

It helps reducing the amount of user code within #ifdef therefore
the risk of breaking branches that are not "active" on a developers
machine.

It can postpone the need to switch to native code, so helper
function merely passing on such handles can be written 
completely #ifdef free.

Structures keeping such handles can be defined more cleanly,
similarly class interfaces.

Ports to new platforms with new platform specific handles are
easier as they touch less code.

Etc etc.

Andre'



More information about the Development mailing list