Hey Eskil, have you been able to reproduce my crash with the code I sent you last week ? and know where the bug could be ?
Regards, Vincent On Thu, Jan 15, 2009 at 9:52 AM, Vincent Lebreil <[email protected]>wrote: > Hey Eskil > > Thanks for your answer. > > About plugins in standalone designer (not eclipse plugin), I've selected > Help > About plugins and the following folders appear: > - Loaded plugins > - JambiCustomWidgets.dll > - JambiLanguage.dll > > Then I tried what you said: putting my custom widgets description file in > my /path/to/qtjambi/plugins/qtjambi folder. > I have now 3 files: > - qtjambi_examples.xml > - qtjambi_widgets.xml > - qtjambi_vincent.xml > > Here's the content of the last file (i'm working on a personal account > manager): > > <qt-jambi-custom-widget-list> > <qt-jambi-custom-widget > class="org.lebreil.bank.gui.BankTransactionListWidget" > group="AccountManager" > /> > <qt-jambi-custom-widget > class="org.lebreil.bank.gui.BankTransactionWidget" > group="AccountManager" > /> > <qt-jambi-custom-widget > class="org.lebreil.bank.gui.EditCategoriesWidget" > group="AccountManager" > /> > <qt-jambi-custom-widget > class="org.lebreil.bank.gui.SortedTreeView" > group="AccountManager" > /> > </qt-jambi-custom-widget-list> > > Then if I run out of the box /path/to/qtjambi/designer.bat, my custom > widgets don't show up. But that's maybe normal because designer doesn't know > where to find them, isn't it? > > For the crash in eclipse, I will send you in another email my source code > (as a zipped file), except if there's another way to share files, for > instance within this mailing list. > > Best regards, > > Vincent > > > On Wed, Jan 14, 2009 at 9:51 AM, Eskil Abrahamsen Blomfeldt < > [email protected]> wrote: > >> Vincent Lebreil wrote: >> >>> Since I cannot use QtDesigner plugin for Eclipse anymore, I have tried to >>> use designer included in QtJambi distrib by running designer.bat. The >>> problem is that I am not able to include (or promote ?) my custom widget >>> cause designer is asking me for including header files (.h). I'm not sure to >>> run the right designer. I thought this was the standalone designer for >>> QtJambi but it seems to be the one for C++. >>> >> >> Designer needs to load some plugins in order to be in Qt Jambi mode. If it >> has loaded correctly, you should get a message that the "promote widget" >> feature is unavailable when using Designer with Qt Jambi. In order to use >> custom widgets with Qt Jambi Designer, you will need to edit an XML file and >> place it in >> >> /path/to/qtjambi/plugins/qtjambi >> >> There's a file called qtjambi_examples.xml there which you can look at as >> a reference. >> >> As for the problem of loading the plugins. Could you select the "About >> plugins" item from the "Help" menu in Designer and see if it says anything >> about the Qt Jambi plugins? >> >> >>> I'm stuck. QtJambi Designer plugin for Eclipse doesn't work anymore and I >>> don't know how to use the standalone designer (if designer for Java exists). >>> Some help would be really appreciated. :) >>> >> >> About the crash you are seeing in Eclipse. Most likely one of your custom >> widgets is causing the crash when it's being instantiated by the widget box. >> Is there any way you can narrow this down into some code that you could send >> me, so that I could test it here? >> >> -- Eskil >> >> >> >
_______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
