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

Re: Mac OS X QWidget background style sheet problem

Subject: Re: Mac OS X QWidget background style sheet problem
From: Bo Thorsen
Date: Mon, 25 Feb 2008 13:17:35 +0100
Sounds like you should send this one to qt-bugs@xxxxxxxxxxxxxx

Bo.

On mandag den 25. Februar 2008, Maik Friedmann wrote:
> Hello,
>
> I've just tried your suggestion, it works as expected on Linux and
> Windows (a simple form with two widgets, one QLabel and one QWidget).
> However on Mac, the same problem persists. I *have* to change
> autoFillBackground to True from designer (which is not the case with
> Linux and Windows) to see the icons at design time. However
> *previewing* the form in any of the styles shows nothing (no
> background icon, just the form itself).
>
> Regards,
> Maik
>
> On Mon, Feb 25, 2008 at 1:14 PM, Peter Prade <prade@xxxxxxxxxxx> wrote:
> > Just to rule out any problems with your resources and your build system,
> > try this: (one of the embedded resources
> > http://wiki.qtcentre.org/index.php?title=Embedded_resources)
> >
> >  * {
> >     background-image:
> > url(:/trolltech/styles/commonstyle/images/networkdrive-16.png); }
> >
> >  can you see the image when you set it as something else than the
> > background-image?
> >
> >  Cheers,
> >  Peter
> >
> >  > -----Ursprüngliche Nachricht-----
> >  > Von: Maik Friedmann [mailto:maik.friedmann@xxxxxxxxxxxxxx]
> >  > Gesendet: Montag, 25. Februar 2008 08:36
> >  > An: qt-interest@xxxxxxxxxxxxx
> >  > Betreff: Mac OS X QWidget background style sheet problem
> >  >
> >  >
> >  >
> >  > Hello,
> >  >
> >  > I'm using style sheets to display background images on some widgets.
> >  > But no images are being showed under Mac OS X (Tiger). Problematic
> >  > style sheet is simple:
> >  >
> >  > * {
> >  >     background-image: url(/Users/maik/images/bg.png);
> >  > }
> >  >
> >  > Widget is plain QWidget. I tried relative paths, absolute paths, image
> >  > resources without any luck. I've managed to display the background
> >  > image in Designer, at design phase, by using an absolute path and
> >  > setting autoFillBackground to True. However, previewing again does
> >  > not work (in any style). On the other hand, the same code works
> >  > without problems on Linux and Windows.
> >  >
> >  > I'm using Qt 4.3.3 opensource edition on all platforms. Mac OS X
> >  > version is 10.4.11. What am I doing wrong?
> >  >
> >  > Regards,
> >  > Maik
>
> --
> 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/



-- 

Thorsen Consulting ApS - Qt consulting services
http://www.thorsen-consulting.dk

--
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>