Qt-jambi-interest Archive, September 2007
jambi designer problems
Message 1 in thread
I'm trying to make use of custom widgets in Qt Jambi on Eclipse 3.2.2
for Linux w/ Java 6, but I'm getting nowhere fast.
The stand-alone designer that comes with Qt Jambi doesn't support
custom widgets. Is that a fair statement? Not only does it not allow
creating projects with custom widgets, if you load a project that
contains a custom widget, it will replace it with a generic QWidget,
destroying the project.
Qt Jambi's Eclipse integration works fine for the most part, except
for the Designer integration. It is slow to the point of being
unusable. The standalone version is fast enough to appear like any
other Qt program, but the version which runs from within Eclipse has
5+ second delays for every mouse click. No CPU activity is going on
during this period, and the disk appear idle, and memory usage is not
very high. So it appears to just sleep for a while every time I click
on something in the designer.
Is there a development snapshot for newer Eclipse integration code?
Or is there some workaround for the severe slowness?
regards,
Valient
Message 2 in thread
Hi, Valient.
Valient Gough wrote:
> The stand-alone designer that comes with Qt Jambi doesn't support
> custom widgets. Is that a fair statement? Not only does it not allow
>
The Qt Jambi Designer does support custom widgets written in Java, but
how this is done is undocumented at the moment.
My best suggestion is to look in the file
path/to/jambi/plugins/qtjambi/qtjambi_examples.xml
This contains XML to import the Qt Jambi examples as custom widgets in
Designer. Your widget needs to be specified in such an XML file in
addition to being available on the class path when Designer is started up.
> Qt Jambi's Eclipse integration works fine for the most part, except
> for the Designer integration. It is slow to the point of being
> unusable. The standalone version is fast enough to appear like any
> other Qt program, but the version which runs from within Eclipse has
> 5+ second delays for every mouse click. No CPU activity is going on
> during this period, and the disk appear idle, and memory usage is not
> very high. So it appears to just sleep for a while every time I click
> on something in the designer.
>
Could I have your platform details please (OS, memory, CPU, etc.)? We
have tested the integration on several machines, both virtual and not,
and we are not seeing the same performance problems that you have.
Also: Is there any debug output that might give us a clue? If you are
running on Windows, then running DebugView should let you see if there
is any output from Eclipse.
http://www.microsoft.com/technet/sysinternals/utilities/debugview.mspx
If you are on Linux, please run Eclipse from the command line to see the
output.
As a third option, it might be useful to check the "Error Log" view in
Eclipse to see if there are any exceptions firing regularly. That could
potentially slow things down a lot.
> Or is there some workaround for the severe slowness?
>
>
There's no reason why the designer integration should be severely slow.
Hopefully we'll be able to find a fix/workaround for it when we find out
what is causing it.
-- Eskil