[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: using custom widgets in Qt4 designer
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2005-11-16 9:48:47
Message-ID: 20051116094847.GA7858 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]

On 14.11.05 09:58:06, Jason Harris wrote:
> > That's way too inconvenient ;-)
> > 
> > kdelibs provides a tool to auto-generate the necessary code (see 
> > kdelibs/kdewidgets, or kdepim/libkdepim for an usage example). You just need 
> > to write a few lines per widget in an ini-like file :)
> > 
> Great!  Now why isn't this documented anywhere...Maybe I'll do so if/when I 
> get it working.
> 
> I did prepare one of my widgets as a designer plugin (the manual Qt way); the 
> code was trivial, as Andreas said.  However, I have no idea how to do the 
> Makefile magic to make it work.  Anyway, that's moot I guess.

Use qmake ;-)

I could send you the generated Makefile for my plugin library, even
though it uses a QWidgetCollectionPlugin to have multiple plugins
available from one lib it should show you the way. AFAIK all you have
to do is link all your object files into a shared library and put that
thing somewhere where designer finds it (Normally this is
QTDIR/plugins/designer, but you can set QT_PLUGIN_PATH to any directory
with a "designer"-subdir)

Andreas

-- 
Today is the first day of the rest of your life.
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic