octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUI Qt figure window


From: Michael Goffioul
Subject: Re: GUI Qt figure window
Date: Tue, 21 Aug 2012 18:17:12 +0100

On Tue, Aug 21, 2012 at 6:00 PM, Jacob Dawid <address@hidden> wrote:
Dan,
 
The X11 window ID was an example.  Does Qt have an analogous widget ID that is something different than X11 window ID?

Dan

Difficult to answer, I think it's a wrong question :) X11 is a window system, Qt is a C++ application framework. Qt is object-oriented, so every unique QWidget object has a memory address (which identifies the object), so I would say that is what the ID is. In fact, the memory address is used to embed QWidgets in other QWidgets. I guess a Qt application is not primarily intended to be "swallowed" by another application or to expose its internals.

Embedding one application's widget into another application's container is done through the XEmbed protocol under X11. Qt provides container and widget classes implementing the XEmbed protocol (QX11EmbedWidget and QX11EmbedContainer). This, however, is a X11-only solution (though equivalent exists under Windows, I don't know about OS X).

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]