[Interest] Convert WId to HWND
Sean Harmer
sean.harmer at kdab.com
Thu Dec 20 13:30:58 CET 2012
Hi Bo,
On Thursday 20 December 2012 12:11:43 Bo Thorsen wrote:
> Hi everyone,
>
> In Qt4, WId was a platform independent window handle. On Windows this
> was just a typedef from HWND. But in Qt5, that's no longer the case.
Take a look at:
virtual QPlatformNativeInterface *QWindowsIntegrationnativeInterface() const
and
void *QWindowsNativeInterface::nativeResourceForWindow(const QByteArray
&resource, QWindow *window)
in src/plugins/windows. With the QWindowsNativeInterface you can obtain the
native HWND and device context I think.
Cheers,
Sean
--
Dr Sean Harmer | sean.harmer at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
More information about the Interest
mailing list