[Development] Qt Platform Extras
Joerg Bornemann
joerg.bornemann at digia.com
Mon Feb 25 12:03:39 CET 2013
On 25/02/2013 09:35, Sorvig Morten wrote:
> - Stand-alone function namespace:
> * Qt::toPlatformType (“Qt::toWindowsHBITMAP”. “Qt::toMacCGImageRef”)
> -OR-
> * QPlatform::toType(“QWindows::toHBITMAP”, "QMac::toCGImageRef")
I vote for the latter naming scheme. We should not simulate namespaces
by cluttering the function names.
Looking at the Windows example, it might be wise to call the platform
namespaces QtPlatform, not QPlatform to make the namespace QtWindows and
the class QWindow easier distinguishable.
BR,
Joerg
More information about the Development
mailing list