Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, March 2008
QFrame fill background on mac


Message 1 in thread

hi all,

I have no problem getting QFrame to fill it's background on windows, 
but on mac, no chance. even in designer on the mac, i can check 
autoFillBackground and set the style sheet to have a background color 
and deigner will show it fine, then when i hit preview, no background. 
again, this is only on mac, the windows version works exactly like i'd 
expect.

has anyone else experienced this?

thanks in advance,
-- 
 [ signature omitted ] 

Message 2 in thread

On 2008-03-29 07:45:28 -0400, Christopher Skogen <cskogen@xxxxxxxxxxxxx> said:

> hi all,
> 
> I have no problem getting QFrame to fill it's background on windows, 
> but on mac, no chance. even in designer on the mac, i can check 
> autoFillBackground and set the style sheet to have a background color 
> and deigner will show it fine, then when i hit preview, no background. 
> again, this is only on mac, the windows version works exactly like i'd 
> expect.
> 
> has anyone else experienced this?
> 
> thanks in advance,


i found another thread referencing this. no solution, just "it might be 
a bug". anyone else have info?

-- 
 [ signature omitted ] 

Message 3 in thread

http://doc.trolltech.com/4.3.3/stylesheet.html

":*Warning:* Qt style sheets are currently not supported for QMacStyle 
<http://doc.trolltech.com/4.3.3/qmacstyle.html> (the default style on 
Mac OS X) and custom QStyle <http://doc.trolltech.com/4.3.3/qstyle.html> 
subclasses. We plan to address this in some future release"

I assume this issue is the primary culprit, although I have no idea why 
designer would be showing the style.

Christopher Skogen wrote:
> On 2008-03-29 07:45:28 -0400, Christopher Skogen 
> <cskogen@xxxxxxxxxxxxx> said:
>
>> hi all,
>>
>> I have no problem getting QFrame to fill it's background on windows, 
>> but on mac, no chance. even in designer on the mac, i can check 
>> autoFillBackground and set the style sheet to have a background color 
>> and deigner will show it fine, then when i hit preview, no 
>> background. again, this is only on mac, the windows version works 
>> exactly like i'd expect.
>>
>> has anyone else experienced this?
>>
>> thanks in advance,
>
>
> i found another thread referencing this. no solution, just "it might 
> be a bug". anyone else have info?
>

--
 [ signature omitted ] 

Message 4 in thread

i saw that warning too. i took that to mean that QMacStyle wouldn't 
work with style sheets, so i've been trying to use plastique or 
cleanlooks. no difference. i just tried the 4.4 beta on mac. no 
difference. i'm beginning to believe that style sheets just don't work 
right on the mac in general. it's extremely unfortunate.

chris



On 2008-03-31 10:51:46 -0400, Noah White-Hamerslough <noah@xxxxxxx> said:

> http://doc.trolltech.com/4.3.3/stylesheet.html
> 
> ":*Warning:* Qt style sheets are currently not supported for QMacStyle 
> <http://doc.trolltech.com/4.3.3/qmacstyle.html> (the default style on 
> Mac OS X) and custom QStyle 
> <http://doc.trolltech.com/4.3.3/qstyle.html> subclasses. We plan to 
> address this in some future release"
> 
> I assume this issue is the primary culprit, although I have no idea why 
> designer would be showing the style.
> 
> Christopher Skogen wrote:
>> On 2008-03-29 07:45:28 -0400, Christopher Skogen <cskogen@xxxxxxxxxxxxx> said:
>> 
>>> hi all,
>>> 
>>> I have no problem getting QFrame to fill it's background on windows, 
>>> but on mac, no chance. even in designer on the mac, i can check 
>>> autoFillBackground and set the style sheet to have a background color 
>>> and deigner will show it fine, then when i hit preview, no background. 
>>> again, this is only on mac, the windows version works exactly like i'd 
>>> expect.
>>> 
>>> has anyone else experienced this?
>>> 
>>> thanks in advance,
>> 
>> 
>> i found another thread referencing this. no solution, just "it might be 
>> a bug". anyone else have info?


-- 
 [ signature omitted ] 

Message 5 in thread

interesting. if the QLabel does not have a parent (top level widget) 
the style sheets work perfectly. once the widget is a child, it seems 
to ignore and background info. i'm going to build a debug version of qt 
and step thru this.

On 2008-03-31 10:51:46 -0400, Noah White-Hamerslough <noah@xxxxxxx> said:

> http://doc.trolltech.com/4.3.3/stylesheet.html
> 
> ":*Warning:* Qt style sheets are currently not supported for QMacStyle 
> <http://doc.trolltech.com/4.3.3/qmacstyle.html> (the default style on 
> Mac OS X) and custom QStyle 
> <http://doc.trolltech.com/4.3.3/qstyle.html> subclasses. We plan to 
> address this in some future release"
> 
> I assume this issue is the primary culprit, although I have no idea why 
> designer would be showing the style.
> 
> Christopher Skogen wrote:
>> On 2008-03-29 07:45:28 -0400, Christopher Skogen <cskogen@xxxxxxxxxxxxx> said:
>> 
>>> hi all,
>>> 
>>> I have no problem getting QFrame to fill it's background on windows, 
>>> but on mac, no chance. even in designer on the mac, i can check 
>>> autoFillBackground and set the style sheet to have a background color 
>>> and deigner will show it fine, then when i hit preview, no background. 
>>> again, this is only on mac, the windows version works exactly like i'd 
>>> expect.
>>> 
>>> has anyone else experienced this?
>>> 
>>> thanks in advance,
>> 
>> 
>> i found another thread referencing this. no solution, just "it might be 
>> a bug". anyone else have info?


-- 
 [ signature omitted ]