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

List:       pykde
Subject:    Re: [PyQt] Re: Re: QStyle manipulations
From:       Gustavo_A._Díaz <gustavo.diaz () gmail ! com>
Date:       2009-07-25 20:30:35
Message-ID: 64c123920907251330s3c3faec4x20ecda644cc51845 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Or you can use styleSheets ;)

2009/7/25 Erik Janssens <Erik.Janssens@conceptive.be>

>
> >
> > Message: 2
> > Date: Fri, 24 Jul 2009 17:56:32 -0500
> > From: Robert Kern <robert.kern@gmail.com>
> > Subject: [PyQt] Re: QStyle manipulations
> > To: pyqt@riverbankcomputing.com
> > Message-ID: <h4de70$pg8$1@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@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-flavor/
>
> somebody has experience with this ?
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
Gustavo A. Díaz
GDNet Projects
www.gdnet.com.ar

[Attachment #5 (text/html)]

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



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

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