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

Qt-interest Archive, June 2007
border styles replacing frame shadows


Message 1 in thread

Has anyone had success using the style sheet 3D border-styles, like groove, ridge,
or inset?  My QFrames seem to do display properly using the styles like "dotted" or
"dashed", but as soon as I try a 3D type style it just shows no border.  If I remove
the stylesheet and go back to using "setFrameShadow()" it displays properly again.

Are these unimplemented, or do I need to do some magic to make them work?

Thanks,
Caleb

--
 [ signature omitted ] 

Message 2 in thread

Caleb Tennis wrote:
> Has anyone had success using the style sheet 3D border-styles, like groove, ridge,
> or inset?  My QFrames seem to do display properly using the styles like "dotted" or
> "dashed", but as soon as I try a 3D type style it just shows no border.  If I remove
> the stylesheet and go back to using "setFrameShadow()" it displays properly again.
> 
> Are these unimplemented, or do I need to do some magic to make them work?
> 

QFrame { border: 5px groove red } seems to provide a groove border. What 
is your Style Sheet? What is the Qt version?

Girish

--
 [ signature omitted ] 

Message 3 in thread

> QFrame { border: 5px groove red } seems to provide a groove border. What
> is your Style Sheet? What is the Qt version?

I see the problem.  The implicit size is set to 1px, which is enough to show the
basic borders but not enough to show any part of the 3 dimensional borders.  Making
the size larger has the desired impact.

Thanks,
Caleb

--
 [ signature omitted ]