qt-interest@trolltech.com
[Top] [All Lists]

Re: Custom Widget Plugin

Subject: Re: Custom Widget Plugin
From: Josinei Silva
Date: Fri, 9 Jun 2006 09:50:32 -0300
Minh, David,

Thanks for your help.

I tried with "release"+ "build_all"  and "debug_and_release"+"build_all" but 
it didn't work.

At /usr/local/Trolltech/Qt-4.1.2/plugins/designer thereÅ only 
"libMyPlugin.so", ThereÅ no others plugins instaled at Designer.

I really don't know what more i can try :(

Josinei

Em Sexta 09 Junho 2006 07:11, David Boddie escreveu:
> Minh Tran wrote:
> > It looks about right. Which platform is this? I've only ever done it on
> > Linux and I found that the make is broken for plugins for
> > "debug_and_release" configs (I reported the bug a while back and
> > according to task tracker, it isn't fixed ID 101884). I'd imagine it
> > would be broken for other platforms as well but I can't be certain.
>
> I was surprised to find that it was assigned to me, particularly since the
> solution recommended to me is already partly documented in the qmake
> manual:
>
> http://doc.trolltech.com/4.1/qmake-variable-reference.html#config
>
> (See the entry in the table for "build_all".)
>
> > To get around this, make sure you do "make all" or change
> > debug_and_release to release. This will ensure the release gets built.
> > Note that designer will only look at the release version, not the debug
> > one.
>
> You need to make sure that the debug and release plugins are built with
> different file names, otherwise one will overwrite the other on certain
> platforms.
>
> > Now to ensure you put the result plugin in the correct directory. I put
> > it in "QT_INSTALL_PATH/plugins/designer" (sorry this is off the top of
> > my head, not 100%). You'll find the rest of the designer plugins in here
> > as well. If everything else is right with the plugins, it should now
> > appear in designer.
>
> The .pro file needs to contain the following two lines:
>
> target.path = $$[QT_INSTALL_PLUGINS]/designer
> INSTALLS += target
>
> These make sure that both versions of the plugin are installed in the right
> place when you run "make install".
>
> Hope this helps,


_______________________________________________________
Novo Yahoo! Messenger com voz: Instale agora e faïa ligaïïes de graïa.
http://br.messenger.yahoo.com/

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>