[Interest] gradients and Layouts ...

Tony Rietwyk tony at rightsoft.com.au
Wed May 1 02:46:53 CEST 2013


Hi Laura, 

 

A Qt layout is not a widget, so it can't draw anything itself.   I would use
a QFrame with the style set to draw the background gradient, then add the
layout and child widgets.  

 

Hope that helps, 

 

Tony

 

 

From: interest-bounces+tony=rightsoft.com.au at qt-project.org
[mailto:interest-bounces+tony=rightsoft.com.au at qt-project.org] On Behalf Of
Laura Rodríguez Pérez
Sent: Wednesday, 1 May 2013 12:21 AM
To: interest at qt-project.org
Subject: [Interest] gradients and Layouts ...

 

Hi 
 I’m interested in creating a QT Layout with a gradient background in
the same manner as the QTCreator section headers ( the ones with the black
gradients ).  I’m currently diggin’ through the documentation but haven’t
been able to come up with anything related 


 

Can you point me in the right direction ??

 

Thanks 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130501/1afe8a54/attachment.html>


More information about the Interest mailing list