[Interest] Showing QGuiApplication/QML application on a given HWND ref.
Hamish Moffatt
hamish at risingsoftware.com
Wed Jun 3 09:00:00 CEST 2015
On 03/06/15 16:56, Nuno Santos wrote:
> Hi,
>
> When we start a new QGuiApplication, it handles the Window creation on each platform.
>
> Now imagine that someone would give us a window ref and we wanted to put our Qt application running on it.
>
> Is this possible?
>
> I’m building a plugin for an host program that provides the window for the plugin to be shown, but Qt already opens an window.
>
> Apparently it is not possible to control if that window is provide or not. It seems to be always provided.
>
>
I think QWidget::create() is for this purpose. It takes a WId (which is
an HWND on Windows) where you can supply the window reference you've
been given.
I haven't tried it. Good luck.
Hamish
More information about the Interest
mailing list