[Kde-bindings] [Bug 149340] New: [Qyoto]Remove WId in kalyptus ctypemap cause QX11EmbedContainer broken
cjacker
jzhuang at redflag-linux.com
Wed Aug 29 15:21:16 UTC 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=149340
Summary: [Qyoto]Remove WId in kalyptus ctypemap cause
QX11EmbedContainer broken
Product: bindings
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kde-bindings kde org
ReportedBy: jzhuang redflag-linux com
Version: svn (using KDE Devel)
Installed from: Compiled sources
Compiler: gcc-4.2.1
OS: Linux
Remove WId in kalyptus ctypemap cause QX11EmbedContainer broken.
I found it had been removed for a long time.
http://websvn.kde.org/?view=rev&revision=531810
But, It is very useful(the only way) to embed standalong Window or Widget in another window.
for example:
embed mplayer window in Qyoto Application.
since Qt4 support glib/gtk event loop, we can use QX11EmbedContainer and Gtk.Plug to embed a gtk widget in qt4 application.(I use it to embed gtkmozembed widget in a Qyoto MainApplication).
here is a example:
using System;
using Qyoto;
public class Test
{
public static int Main(String[] args) {
QApplication app = new QApplication(args);
QX11EmbedContainer container =new QX11EmbedContainer();
container.Show();
container.EmbedClient(0x340000b);
return QApplication.Exec();
}
}
It can embed any standalone window into it(should modify the Window ID in EmbedClient function).
after compile and run it, we got:
"Cannot handle 'WId' as argument to QX11EmbedContainer::embedClient"
if we reverse the changes in http://websvn.kde.org/?view=rev&revision=531810.
it works very well.
also, I can embed vte-sharp/gecko-sharp or any Gtk-sharp widget in Qyoto Application.
More information about the Kde-bindings
mailing list