[PyQt] Re: Re: QStyle manipulations

Hans-Peter Jansen hpj at urpla.net
Sat Jul 25 23:36:15 BST 2009


Am Samstag, 25. Juli 2009 schrieb Gustavo A. Díaz:
> Or you can use styleSheets ;)

Since I need to control the spacing between _certain_ widgets (which is 
depending on the type of the widgets in question), I can't. 

Pete

> 2009/7/25 Erik Janssens <Erik.Janssens at conceptive.be>
>
> > > Message: 2
> > > Date: Fri, 24 Jul 2009 17:56:32 -0500
> > > From: Robert Kern <robert.kern at gmail.com>
> > > Subject: [PyQt] Re: QStyle manipulations
> > > To: pyqt at riverbankcomputing.com
> > > Message-ID: <h4de70$pg8$1 at ger.gmane.org>
> > > Content-Type: text/plain; charset=UTF-8; format=flowed
> > >
> > > On 2009-07-24 10:26, Phil Thompson wrote:
> > > > On Fri, 24 Jul 2009 01:03:47 +0200, "Hans-Peter
> > > > Jansen"<hpj at urpla.net>
> > > >
> > > > wrote:
> > > >> Hi,
> > > >>
> > > >> I've some layout issues with customized widgets on the Mac, and
> > > >> now, I would
> > > >> like to _intercept_ a single QStyle method:
> > > >
> > > > layoutSpacingImplementation(),
> > > >
> > > >> but how? I can create a style with QtGui.QStyleFactory.create(),
> > > >> but
> >
> > how
> >
> > > > do
> > > >
> > > >> I intercept such a method? PyQt forbids me to subclass the style
> >
> > object,
> >
> > > >> returned from factory (Phil, shouldn't these derive from
> > > >> QCommonStyle,
> > > >
> > > > and
> > > >
> > > >> been able to subclass? [1])  and the "dirty as hell" - patch it
> > > >> into
> >
> > the
> >
> > > >> object - approach seem to not work either. Any more ideas?
> > > >>
> > > >> BTW, Phil, you don't wrap the style classes directly, because they
> > > >> may
> >
> > be
> >
> > > >> plug-ins, but what's the technical reason behind this? Aren't
> > > >> there
> >
> > hosts
> >
> > > >> of other plug-ins (sql drivers, image formats, etc..) in use
> > > >> today?
> > > >
> > > > Yes, but you don't access them directly - PyQt knows nothing about
> >
> > them.
> >
> > > Do you have an answer for his main question? I am interested, too.
> > >
> > > --
> > > Robert Kern
> >
> > I'd like to be able to use the dotnet style for windows users
> > (our being able to reimplement it in python)
> >
> > http://labs.trolltech.com/blogs/2007/07/06/dotnet-style-with-office-fla
> >vor/
> >
> > somebody has experience with this ?
> >
> > _______________________________________________
> > PyQt mailing list    PyQt at riverbankcomputing.com
> > http://www.riverbankcomputing.com/mailman/listinfo/pyqt





More information about the PyQt mailing list