Qt-interest Archive, December 2006
bundling styles in a widget plugin
Message 1 in thread
I want to bundle my custom styles in with my widget plugin, and be
able to create them with QStyleFactory::create("mystyle"). Is this at
all possible? I need to end up with only one plugin file...
--
[ signature omitted ]
Message 2 in thread
as one possiblity, is it possible to compile a style plugin as a
static library, then link it to my (dynamic) widget plugin?
On 12/13/06, Patrick Stinson <patrickkidd.lists@xxxxxxxxx> wrote:
> I want to bundle my custom styles in with my widget plugin, and be
> able to create them with QStyleFactory::create("mystyle"). Is this at
> all possible? I need to end up with only one plugin file...
>
> --
> Patrick Kidd Stinson
> http://www.patrickkidd.com/
> http://pkaudio.sourceforge.net/
> http://pksampler.sourceforge.net/
>
--
[ signature omitted ]
Message 3 in thread
Patrick Stinson wrote:
> On 12/13/06, Patrick Stinson <patrickkidd.lists@xxxxxxxxx> wrote:
>> I want to bundle my custom styles in with my widget plugin, and be
>> able to create them with QStyleFactory::create("mystyle"). Is this at
>> all possible? I need to end up with only one plugin file...
I don't see why this shouldn't be possible. Have you seen the "How to
Create Qt Plugins" document?
http://doc.trolltech.com/4.2/plugins-howto.html
> as one possiblity, is it possible to compile a style plugin as a
> static library, then link it to my (dynamic) widget plugin?
I think it will depend on who creates the style in this case: whether
it's the widget plugin or the application.
--
[ signature omitted ]
Message 4 in thread
I linked the styles plugin statically to the other widget plugin, but
the Q_EXPORT_PLUGIN2 macro has no effect for the style, because the
style name doesn't show up in QStyleFactory::keys().
On 12/14/06, David Boddie <dboddie@xxxxxxxxxxxxx> wrote:
> Patrick Stinson wrote:
>
> > On 12/13/06, Patrick Stinson <patrickkidd.lists@xxxxxxxxx> wrote:
> >> I want to bundle my custom styles in with my widget plugin, and be
> >> able to create them with QStyleFactory::create("mystyle"). Is this at
> >> all possible? I need to end up with only one plugin file...
>
> I don't see why this shouldn't be possible. Have you seen the "How to
> Create Qt Plugins" document?
>
> http://doc.trolltech.com/4.2/plugins-howto.html
>
> > as one possiblity, is it possible to compile a style plugin as a
> > static library, then link it to my (dynamic) widget plugin?
>
> I think it will depend on who creates the style in this case: whether
> it's the widget plugin or the application.
>
> --
> David Boddie
> Technical Writer, Trolltech ASA
>
> --
> 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/
>
>
--
[ signature omitted ]