gpugems / swtqt

Automatically exported from code.google.com/p/swtqt
0 stars 0 forks source link

question to an expert: Is it possible to open QWidget parented to eclipse mdi area #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

I want to make one of our libraries(qt based) be available for people to use as 
a plugin in eclipse.

As a first step and a proof of concept.
I have to create a simple qtjambi based plugin for eclipse. Needless to say I 
want this qt_jambi_plugin_view to open inside of eclipse and not be a popup.

I do not have sufficient knowledge to know how to, if possible, to parent 
jambi_QWidget to eclipse mdiarea.

I very much appreciate you help.

One more quick question:
I still have problems having my qt_jambi based plugin open as a popup widget 
when used as a plugin. I am missing dependencies and having problems finding 
the place to specify them in eclipse.

When plugin is loaded I get this warning:
The extensions and extension-points from the bundle "com.trolltech.qt" are 
ignored. The bundle is not marked as singleton.

after i execute it by clicking on a tool button i get the expected result Erorr:
java.lang.NoClassDefFoundError: com/trolltech/qt/gui/QApplication
at plugin_foo.actions.MyAction.....

Here is my MANIFEST.MF any ideas.

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Plugin_foo
Bundle-SymbolicName: plugin_foo; singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: plugin_foo.Activator
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 com.trolltech.qtjambi;bundle-version="1.2.0",
 com.trolltech.qt;bundle-version="1.2.0"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6 

Original issue reported on code.google.com by kklinovs...@gmail.com on 22 Sep 2010 at 1:06

GoogleCodeExporter commented 8 years ago
Did you use these SWT/Qt bundles that are in the download area when you the 
problem that you describe ?

This project is not about using Qt and SWT together but to create a new SWT 
implementation that uses Qt as its toolkit. 

Have you looked at what we do in 
http://code.google.com/a/eclipselabs.org/p/swtqt/source/browse/org.eclipselabs.s
wtqt/META-INF/MANIFEST.MF where we have our manifest.mf ?

Original comment by christia...@gmail.com on 5 Oct 2010 at 10:39

GoogleCodeExporter commented 8 years ago
i want to embed qt widget inside swt widget this is possible by using HWND from 
swt and parenting qwidget to it. isn't what your project is about?

Original comment by kklinovs...@gmail.com on 6 Oct 2010 at 2:00